Use correct number of decimals for wrapped SOL

This commit is contained in:
Gary Wang 2020-09-01 07:33:34 -07:00
parent ab518bab7f
commit ba191365e7
1 changed files with 1 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ export async function getMintDecimals(
mint: PublicKey,
): Promise<number> {
if (mint.equals(WRAPPED_SOL_MINT)) {
return 6;
return 9;
}
const { data } = throwIfNull(
await connection.getAccountInfo(mint),