@solana/web3.js 1.62.0 → 1.63.0
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/lib/index.browser.cjs.js +9 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +9 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -1
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +9 -1
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/programs/address-lookup-table/state.ts +1 -1
- package/src/publickey.ts +0 -1
- package/src/transaction/versioned.ts +17 -0
package/lib/index.browser.esm.js
CHANGED
|
@@ -2141,6 +2141,14 @@ class VersionedTransaction {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
|
+
addSignature(publicKey, signature) {
|
|
2145
|
+
assert(signature.byteLength === 64, 'Signature must be 64 bytes long');
|
|
2146
|
+
const signerPubkeys = this.message.staticAccountKeys.slice(0, this.message.header.numRequiredSignatures);
|
|
2147
|
+
const signerIndex = signerPubkeys.findIndex(pubkey => pubkey.equals(publicKey));
|
|
2148
|
+
assert(signerIndex >= 0, `Can not add signature; \`${publicKey.toBase58()}\` is not required to sign this transaction`);
|
|
2149
|
+
this.signatures[signerIndex] = signature;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2144
2152
|
}
|
|
2145
2153
|
|
|
2146
2154
|
const SYSVAR_CLOCK_PUBKEY = new PublicKey('SysvarC1ock11111111111111111111111111111111');
|
|
@@ -3507,7 +3515,7 @@ class AddressLookupTableAccount {
|
|
|
3507
3515
|
}
|
|
3508
3516
|
|
|
3509
3517
|
isActive() {
|
|
3510
|
-
const U64_MAX =
|
|
3518
|
+
const U64_MAX = BigInt('0xffffffffffffffff');
|
|
3511
3519
|
return this.state.deactivationSlot === U64_MAX;
|
|
3512
3520
|
}
|
|
3513
3521
|
|