@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/native-libs.js
CHANGED
|
@@ -514,9 +514,9 @@ if (typeof window !== 'undefined' && window && window.Web3) {
|
|
|
514
514
|
var LibsWeb3 = Web3;
|
|
515
515
|
|
|
516
516
|
var name = "@audius/sdk";
|
|
517
|
-
var version = "1.0.
|
|
517
|
+
var version = "1.0.3";
|
|
518
518
|
var audius = {
|
|
519
|
-
releaseSHA: "
|
|
519
|
+
releaseSHA: "99bba7c240d878fe34ca2aefdf0a31c8a2b8c0cb"
|
|
520
520
|
};
|
|
521
521
|
var description = "";
|
|
522
522
|
var main = "dist/index.cjs.js";
|
|
@@ -31704,9 +31704,14 @@ function _getTokenAccountInfo() {
|
|
|
31704
31704
|
switch (_context2.prev = _context2.next) {
|
|
31705
31705
|
case 0:
|
|
31706
31706
|
tokenAccountAddressKey = _ref2.tokenAccountAddressKey, mintKey = _ref2.mintKey, solanaTokenProgramKey = _ref2.solanaTokenProgramKey, connection = _ref2.connection;
|
|
31707
|
-
token = new Token(connection, mintKey, solanaTokenProgramKey, Keypair.generate());
|
|
31707
|
+
token = new Token(connection, mintKey, solanaTokenProgramKey, Keypair.generate()); // Fetch token info with 'processed commitment to get any recently changed amounts.
|
|
31708
|
+
// NOTE: Our version of spl-token omits the second argument
|
|
31709
|
+
// in the type definitions even though it's actually available,
|
|
31710
|
+
// so we suppress error until we can upgrade.
|
|
31711
|
+
// @ts-ignore
|
|
31712
|
+
|
|
31708
31713
|
_context2.next = 4;
|
|
31709
|
-
return token.getAccountInfo(tokenAccountAddressKey);
|
|
31714
|
+
return token.getAccountInfo(tokenAccountAddressKey, 'processed');
|
|
31710
31715
|
|
|
31711
31716
|
case 4:
|
|
31712
31717
|
info = _context2.sent;
|