@debridge-finance/solana-utils 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13050,12 +13050,10 @@ function getTokenInfo(connection_1, tokenAddress_1) {
13050
13050
  return null;
13051
13051
  }
13052
13052
  // parse token account
13053
- // mint_authority - coption(pubkey) = 4 or 36
13053
+ // mint_authority - coption(pubkey) = 36
13054
13054
  // supply - u64 = 8
13055
13055
  // decimals - u8
13056
- let decimalsOffset = 12;
13057
- if (tokenAccount.data[0] === 1)
13058
- decimalsOffset += 32;
13056
+ const decimalsOffset = 44;
13059
13057
  const decimals = tokenAccount.data[decimalsOffset];
13060
13058
  const { name, symbol, uri } = decodeMetaplexMetadataPartial(pdaAccount.data);
13061
13059
  return {