Skip to content

Commit

Permalink
spl-token: Bump web3.js to v1.2.2 (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Mar 29, 2021
1 parent c5e4f64 commit 5473494
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions token/js/cli/token-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ export async function multisig(): Promise<void> {

// Approve via multisig
{
const delegate = new PublicKey();
const delegate = new PublicKey(0);
await testToken.approve(
multisigOwnedAccount,
delegate,
Expand All @@ -596,7 +596,7 @@ export async function multisig(): Promise<void> {

// SetAuthority of account via multisig
{
const newOwner = new PublicKey();
const newOwner = new PublicKey(0);
await testToken.setAuthority(
multisigOwnedAccount,
newOwner,
Expand Down
4 changes: 2 additions & 2 deletions token/js/client/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ export class Token {
decimals,
mintAuthority: pubkeyToBuffer(mintAuthority),
option: freezeAuthority === null ? 0 : 1,
freezeAuthority: pubkeyToBuffer(freezeAuthority || new PublicKey()),
freezeAuthority: pubkeyToBuffer(freezeAuthority || new PublicKey(0)),
},
data,
);
Expand Down Expand Up @@ -1673,7 +1673,7 @@ export class Token {
instruction: 6, // SetAuthority instruction
authorityType: AuthorityTypeCodes[authorityType],
option: newAuthority === null ? 0 : 1,
newAuthority: pubkeyToBuffer(newAuthority || new PublicKey()),
newAuthority: pubkeyToBuffer(newAuthority || new PublicKey(0)),
},
data,
);
Expand Down
24 changes: 12 additions & 12 deletions token/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion token/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"dependencies": {
"@babel/runtime": "^7.10.5",
"@solana/web3.js": "^0.94.2",
"@solana/web3.js": "^1.2.2",
"bn.js": "^5.1.0",
"buffer": "6.0.3",
"buffer-layout": "^1.2.0",
Expand Down

0 comments on commit 5473494

Please sign in to comment.