use spl-token v 0.2.0

This commit is contained in:
tjs 2022-11-17 12:51:12 -05:00
parent 4649774347
commit c4582b0b76
3 changed files with 4 additions and 7 deletions

View File

@ -64,7 +64,7 @@
"@project-serum/anchor": "^0.25.0",
"@project-serum/serum": "^0.13.65",
"@pythnetwork/client": "^2.7.0",
"@solana/spl-token": "^0.1.8",
"@solana/spl-token": "^0.2.0",
"@solana/web3.js": "^1.63.1",
"@switchboard-xyz/switchboard-v2": "^0.0.129",
"big.js": "^6.1.1",
@ -73,8 +73,5 @@
"resolutions": {
"@project-serum/anchor/@solana/web3.js": "1.63.1"
},
"peerDependencies": {
"@solana/spl-token-swap": "^0.2.0"
},
"license": "MIT"
}

View File

@ -6,7 +6,7 @@ import {
} from '@project-serum/serum/lib/token-instructions';
import {
ASSOCIATED_TOKEN_PROGRAM_ID,
Token,
createAssociatedTokenAccountInstruction,
TOKEN_PROGRAM_ID,
} from '@solana/spl-token';
import {
@ -341,7 +341,7 @@ export class MangoClient {
if (!ai) {
const tx = new Transaction();
tx.add(
Token.createAssociatedTokenAccountInstruction(
createAssociatedTokenAccountInstruction(
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
bank.mint,

View File

@ -563,7 +563,7 @@
"@solana/web3.js" "^1.32.0"
start-server-and-test "^1.14.0"
"@solana/spl-token-v2@npm:@solana/spl-token@^0.2.0":
"@solana/spl-token-v2@npm:@solana/spl-token@^0.2.0", "@solana/spl-token@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.2.0.tgz#329bb6babb5de0f9c40035ddb1657f01a8347acd"
integrity sha512-RWcn31OXtdqIxmkzQfB2R+WpsJOVS6rKuvpxJFjvik2LyODd+WN58ZP3Rpjpro03fscGAkzlFuP3r42doRJgyQ==