@solana/web3.js 1.62.1 → 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 +8 -0
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +8 -0
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +8 -0
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +8 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +8 -0
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +8 -0
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/transaction/versioned.ts +17 -0
package/lib/index.native.js
CHANGED
|
@@ -2171,6 +2171,14 @@ class VersionedTransaction {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
|
+
addSignature(publicKey, signature) {
|
|
2175
|
+
assert(signature.byteLength === 64, 'Signature must be 64 bytes long');
|
|
2176
|
+
const signerPubkeys = this.message.staticAccountKeys.slice(0, this.message.header.numRequiredSignatures);
|
|
2177
|
+
const signerIndex = signerPubkeys.findIndex(pubkey => pubkey.equals(publicKey));
|
|
2178
|
+
assert(signerIndex >= 0, `Can not add signature; \`${publicKey.toBase58()}\` is not required to sign this transaction`);
|
|
2179
|
+
this.signatures[signerIndex] = signature;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2174
2182
|
}
|
|
2175
2183
|
|
|
2176
2184
|
const SYSVAR_CLOCK_PUBKEY = new PublicKey('SysvarC1ock11111111111111111111111111111111');
|