spl-token: Bump web3.js to v1.2.2 (#1516)
This commit is contained in:
parent
c5e4f64351
commit
5473494f24
|
@ -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,
|
||||
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -3359,9 +3359,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"@solana/web3.js": {
|
||||
"version": "0.94.2",
|
||||
"resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz",
|
||||
"integrity": "sha512-enJZ9eVJMvNtpuXdygAZHBlPC+2Q3paLY+KforFhVUpi/bkBADDKJWd90RICyu3sPKiVt8YLAs9cIxriQpQqng==",
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.2.2.tgz",
|
||||
"integrity": "sha512-LBp1qqMQtVS1mr1Jw/mnATP7qse2XaMIacrWAM1p9H8MfOBD61hZO/BkI2vJnmVDYJx1K97z8bguuDCnlU6A8Q==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"bn.js": "^5.0.0",
|
||||
|
@ -3434,9 +3434,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"@types/express-serve-static-core": {
|
||||
"version": "4.17.18",
|
||||
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.18.tgz",
|
||||
"integrity": "sha512-m4JTwx5RUBNZvky/JJ8swEJPKFd8si08pPF2PfizYjGZOKr/svUWPcoUmLow6MmPzhasphB7gSTINY67xn3JNA==",
|
||||
"version": "4.17.19",
|
||||
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.19.tgz",
|
||||
"integrity": "sha512-DJOSHzX7pCiSElWaGR8kCprwibCB/3yW6vcT8VG3P0SJjnv19gnWG/AZMfM60Xj/YJIp/YCaDHyvzsFVeniARA==",
|
||||
"requires": {
|
||||
"@types/node": "*",
|
||||
"@types/qs": "*",
|
||||
|
@ -7157,9 +7157,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "12.20.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.4.tgz",
|
||||
"integrity": "sha512-xRCgeE0Q4pT5UZ189TJ3SpYuX/QGl6QIAOAIeDSbAVAd2gX1NxSZup4jNVK7cxIeP8KDSbJgcckun495isP1jQ=="
|
||||
"version": "12.20.7",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.7.tgz",
|
||||
"integrity": "sha512-gWL8VUkg8VRaCAUgG9WmhefMqHmMblxe2rVpMF86nZY/+ZysU+BkAp+3cz03AixWDSSz0ks5WX59yAhv/cDwFA=="
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.21",
|
||||
|
@ -9027,9 +9027,9 @@
|
|||
}
|
||||
},
|
||||
"rpc-websockets": {
|
||||
"version": "7.4.8",
|
||||
"resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.8.tgz",
|
||||
"integrity": "sha512-AygVDg2CAUatqwc3HQl2gaxZDVuTsFyGxry2gkSf4E9WUHz4RIcD7p40vhwSRgTzOfMS8pnlRWO0QNdx5jRA8Q==",
|
||||
"version": "7.4.9",
|
||||
"resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.9.tgz",
|
||||
"integrity": "sha512-5MsJlPDzJkt3eqlUeYHg66A7mxXSSYRE11lKGfNmAXgcMBw4F3a7CLgviwqf6rb850qP3Q1BP8ygp+V+DDq1qQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"assert-args": "^1.2.1",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue