@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/dist/index.cjs.js
CHANGED
|
@@ -33508,9 +33508,9 @@ var formatProviders = function formatProviders(providers) {
|
|
|
33508
33508
|
};
|
|
33509
33509
|
|
|
33510
33510
|
var name = "@audius/sdk";
|
|
33511
|
-
var version = "1.0.
|
|
33511
|
+
var version = "1.0.3";
|
|
33512
33512
|
var audius = {
|
|
33513
|
-
releaseSHA: "
|
|
33513
|
+
releaseSHA: "99bba7c240d878fe34ca2aefdf0a31c8a2b8c0cb"
|
|
33514
33514
|
};
|
|
33515
33515
|
var description = "";
|
|
33516
33516
|
var main = "dist/index.cjs.js";
|
|
@@ -34377,9 +34377,14 @@ function _getTokenAccountInfo() {
|
|
|
34377
34377
|
switch (_context2.prev = _context2.next) {
|
|
34378
34378
|
case 0:
|
|
34379
34379
|
tokenAccountAddressKey = _ref2.tokenAccountAddressKey, mintKey = _ref2.mintKey, solanaTokenProgramKey = _ref2.solanaTokenProgramKey, connection = _ref2.connection;
|
|
34380
|
-
token = new splToken.Token(connection, mintKey, solanaTokenProgramKey, solanaWeb3.Keypair.generate());
|
|
34380
|
+
token = new splToken.Token(connection, mintKey, solanaTokenProgramKey, solanaWeb3.Keypair.generate()); // Fetch token info with 'processed commitment to get any recently changed amounts.
|
|
34381
|
+
// NOTE: Our version of spl-token omits the second argument
|
|
34382
|
+
// in the type definitions even though it's actually available,
|
|
34383
|
+
// so we suppress error until we can upgrade.
|
|
34384
|
+
// @ts-ignore
|
|
34385
|
+
|
|
34381
34386
|
_context2.next = 4;
|
|
34382
|
-
return token.getAccountInfo(tokenAccountAddressKey);
|
|
34387
|
+
return token.getAccountInfo(tokenAccountAddressKey, 'processed');
|
|
34383
34388
|
|
|
34384
34389
|
case 4:
|
|
34385
34390
|
info = _context2.sent;
|