@audius/sdk 1.0.2 → 1.0.3

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.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "audius": {
5
- "releaseSHA": "1c8ea27ac99b35561d8a3f1ce44cb804c227ae86"
5
+ "releaseSHA": "99bba7c240d878fe34ca2aefdf0a31c8a2b8c0cb"
6
6
  },
7
7
  "description": "",
8
8
  "main": "dist/index.cjs.js",
@@ -56,7 +56,13 @@ export async function getTokenAccountInfo({
56
56
  solanaTokenProgramKey,
57
57
  Keypair.generate()
58
58
  )
59
- const info = await token.getAccountInfo(tokenAccountAddressKey)
59
+
60
+ // Fetch token info with 'processed commitment to get any recently changed amounts.
61
+ // NOTE: Our version of spl-token omits the second argument
62
+ // in the type definitions even though it's actually available,
63
+ // so we suppress error until we can upgrade.
64
+ // @ts-ignore
65
+ const info = await token.getAccountInfo(tokenAccountAddressKey, 'processed')
60
66
  return info
61
67
  }
62
68