@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/dist/index.cjs.js +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +4 -5
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +5 -5
- package/dist/native-libs.js.map +1 -1
- package/package.json +2 -2
- package/src/services/solana/tokenAccount.ts +1 -1
- package/src/services/solana/userBank.ts +2 -2
package/package.json
CHANGED
|
@@ -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-
|
|
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
|
|
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 =
|
|
82
|
+
const serializedInstructionData = serialize(
|
|
83
83
|
createTokenAccountInstructionSchema,
|
|
84
84
|
instructionData
|
|
85
85
|
)
|