@lightprotocol/stateless.js 0.9.0 → 0.10.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/dist/cjs/browser/index.cjs +6 -4
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +6 -4
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +6 -4
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/cjs/node/index.cjs
CHANGED
|
@@ -4952,15 +4952,16 @@ if (undefined) {
|
|
|
4952
4952
|
* @param instructions instructions to include
|
|
4953
4953
|
* @param payerPublicKey fee payer public key
|
|
4954
4954
|
* @param blockhash blockhash to use
|
|
4955
|
+
* @param lookupTableAccounts lookup table accounts to include
|
|
4955
4956
|
*
|
|
4956
4957
|
* @return VersionedTransaction
|
|
4957
4958
|
*/
|
|
4958
|
-
function buildTx(instructions, payerPublicKey, blockhash) {
|
|
4959
|
+
function buildTx(instructions, payerPublicKey, blockhash, lookupTableAccounts) {
|
|
4959
4960
|
const messageV0 = new web3_js.TransactionMessage({
|
|
4960
4961
|
payerKey: payerPublicKey,
|
|
4961
4962
|
recentBlockhash: blockhash,
|
|
4962
4963
|
instructions,
|
|
4963
|
-
}).compileToV0Message();
|
|
4964
|
+
}).compileToV0Message(lookupTableAccounts);
|
|
4964
4965
|
return new web3_js.VersionedTransaction(messageV0);
|
|
4965
4966
|
}
|
|
4966
4967
|
/**
|
|
@@ -5016,12 +5017,13 @@ async function confirmTx(rpc, txId, confirmOptions, blockHashCtx) {
|
|
|
5016
5017
|
* @param payer payer of the transaction
|
|
5017
5018
|
* @param blockhash recent blockhash to use in the transaction
|
|
5018
5019
|
* @param additionalSigners non-feepayer signers to include in the transaction
|
|
5020
|
+
* @param lookupTableAccounts lookup table accounts to include in the transaction
|
|
5019
5021
|
*/
|
|
5020
|
-
function buildAndSignTx(instructions, payer, blockhash, additionalSigners = []) {
|
|
5022
|
+
function buildAndSignTx(instructions, payer, blockhash, additionalSigners = [], lookupTableAccounts) {
|
|
5021
5023
|
if (additionalSigners.includes(payer))
|
|
5022
5024
|
throw new Error('payer must not be in additionalSigners');
|
|
5023
5025
|
const allSigners = [payer, ...additionalSigners];
|
|
5024
|
-
const tx = buildTx(instructions, payer.publicKey, blockhash);
|
|
5026
|
+
const tx = buildTx(instructions, payer.publicKey, blockhash, lookupTableAccounts);
|
|
5025
5027
|
tx.sign(allSigners);
|
|
5026
5028
|
return tx;
|
|
5027
5029
|
}
|