@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/dist/index.cjs.js +9 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +9 -4
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +9 -4
- package/dist/native-libs.js.map +1 -1
- package/package.json +2 -2
- package/src/services/solana/tokenAccount.ts +7 -1
package/package.json
CHANGED
|
@@ -56,7 +56,13 @@ export async function getTokenAccountInfo({
|
|
|
56
56
|
solanaTokenProgramKey,
|
|
57
57
|
Keypair.generate()
|
|
58
58
|
)
|
|
59
|
-
|
|
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
|
|