Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 5473494

Browse files
authored
spl-token: Bump web3.js to v1.2.2 (#1516)
1 parent c5e4f64 commit 5473494

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

token/js/cli/token-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export async function multisig(): Promise<void> {
578578

579579
// Approve via multisig
580580
{
581-
const delegate = new PublicKey();
581+
const delegate = new PublicKey(0);
582582
await testToken.approve(
583583
multisigOwnedAccount,
584584
delegate,
@@ -596,7 +596,7 @@ export async function multisig(): Promise<void> {
596596

597597
// SetAuthority of account via multisig
598598
{
599-
const newOwner = new PublicKey();
599+
const newOwner = new PublicKey(0);
600600
await testToken.setAuthority(
601601
multisigOwnedAccount,
602602
newOwner,

token/js/client/token.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ export class Token {
14311431
decimals,
14321432
mintAuthority: pubkeyToBuffer(mintAuthority),
14331433
option: freezeAuthority === null ? 0 : 1,
1434-
freezeAuthority: pubkeyToBuffer(freezeAuthority || new PublicKey()),
1434+
freezeAuthority: pubkeyToBuffer(freezeAuthority || new PublicKey(0)),
14351435
},
14361436
data,
14371437
);
@@ -1673,7 +1673,7 @@ export class Token {
16731673
instruction: 6, // SetAuthority instruction
16741674
authorityType: AuthorityTypeCodes[authorityType],
16751675
option: newAuthority === null ? 0 : 1,
1676-
newAuthority: pubkeyToBuffer(newAuthority || new PublicKey()),
1676+
newAuthority: pubkeyToBuffer(newAuthority || new PublicKey(0)),
16771677
},
16781678
data,
16791679
);

token/js/package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

token/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"dependencies": {
5858
"@babel/runtime": "^7.10.5",
59-
"@solana/web3.js": "^0.94.2",
59+
"@solana/web3.js": "^1.2.2",
6060
"bn.js": "^5.1.0",
6161
"buffer": "6.0.3",
6262
"buffer-layout": "^1.2.0",

0 commit comments

Comments
 (0)