@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.esm.js CHANGED
@@ -33462,9 +33462,9 @@ var formatProviders = function formatProviders(providers) {
33462
33462
  };
33463
33463
 
33464
33464
  var name = "@audius/sdk";
33465
- var version = "1.0.2";
33465
+ var version = "1.0.3";
33466
33466
  var audius = {
33467
- releaseSHA: "1c8ea27ac99b35561d8a3f1ce44cb804c227ae86"
33467
+ releaseSHA: "99bba7c240d878fe34ca2aefdf0a31c8a2b8c0cb"
33468
33468
  };
33469
33469
  var description = "";
33470
33470
  var main = "dist/index.cjs.js";
@@ -34331,9 +34331,14 @@ function _getTokenAccountInfo() {
34331
34331
  switch (_context2.prev = _context2.next) {
34332
34332
  case 0:
34333
34333
  tokenAccountAddressKey = _ref2.tokenAccountAddressKey, mintKey = _ref2.mintKey, solanaTokenProgramKey = _ref2.solanaTokenProgramKey, connection = _ref2.connection;
34334
- token = new Token(connection, mintKey, solanaTokenProgramKey, Keypair.generate());
34334
+ token = new Token(connection, mintKey, solanaTokenProgramKey, Keypair.generate()); // Fetch token info with 'processed commitment to get any recently changed amounts.
34335
+ // NOTE: Our version of spl-token omits the second argument
34336
+ // in the type definitions even though it's actually available,
34337
+ // so we suppress error until we can upgrade.
34338
+ // @ts-ignore
34339
+
34335
34340
  _context2.next = 4;
34336
- return token.getAccountInfo(tokenAccountAddressKey);
34341
+ return token.getAccountInfo(tokenAccountAddressKey, 'processed');
34337
34342
 
34338
34343
  case 4:
34339
34344
  info = _context2.sent;