@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.
@@ -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.2";
517
+ var version = "1.0.3";
518
518
  var audius = {
519
- releaseSHA: "1c8ea27ac99b35561d8a3f1ce44cb804c227ae86"
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;