@audius/sdk 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "audius": {
5
- "releaseSHA": "e6ca21697f2d23e30606d4f341f62fcacce560a6"
5
+ "releaseSHA": "cddbf59599ed672ba3047f94f910c983b2c45a1d"
6
6
  },
7
7
  "description": "",
8
8
  "main": "dist/index.cjs.js",
@@ -61,7 +61,7 @@ export async function getTokenAccountInfo({
61
61
  // NOTE: Our version of spl-token omits the second argument
62
62
  // in the type definitions even though it's actually available,
63
63
  // so we suppress error until we can upgrade.
64
- // @ts-ignore
64
+ // @ts-expect-error
65
65
  const info = await token.getAccountInfo(tokenAccountAddressKey, 'processed')
66
66
  return info
67
67
  }
@@ -4,7 +4,7 @@ import {
4
4
  SYSVAR_RENT_PUBKEY,
5
5
  TransactionInstruction
6
6
  } from '@solana/web3.js'
7
- import borsh from 'borsh'
7
+ import { serialize } from 'borsh'
8
8
  import bs58 from 'bs58'
9
9
  import { SolanaUtils } from './SolanaUtils'
10
10
  import type { TransactionHandler } from './transactionHandler'
@@ -79,7 +79,7 @@ export const createUserBankFrom = async ({
79
79
  const instructionData = new CreateTokenAccountInstructionData({
80
80
  ethAddress: ethAddressArr
81
81
  })
82
- const serializedInstructionData = borsh.serialize(
82
+ const serializedInstructionData = serialize(
83
83
  createTokenAccountInstructionSchema,
84
84
  instructionData
85
85
  )