@lightprotocol/stateless.js 0.9.0 → 0.10.1
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
|
@@ -6982,15 +6982,16 @@ if (undefined) {
|
|
|
6982
6982
|
* @param instructions instructions to include
|
|
6983
6983
|
* @param payerPublicKey fee payer public key
|
|
6984
6984
|
* @param blockhash blockhash to use
|
|
6985
|
+
* @param lookupTableAccounts lookup table accounts to include
|
|
6985
6986
|
*
|
|
6986
6987
|
* @return VersionedTransaction
|
|
6987
6988
|
*/
|
|
6988
|
-
function buildTx(instructions, payerPublicKey, blockhash) {
|
|
6989
|
+
function buildTx(instructions, payerPublicKey, blockhash, lookupTableAccounts) {
|
|
6989
6990
|
const messageV0 = new web3_js.TransactionMessage({
|
|
6990
6991
|
payerKey: payerPublicKey,
|
|
6991
6992
|
recentBlockhash: blockhash,
|
|
6992
6993
|
instructions,
|
|
6993
|
-
}).compileToV0Message();
|
|
6994
|
+
}).compileToV0Message(lookupTableAccounts);
|
|
6994
6995
|
return new web3_js.VersionedTransaction(messageV0);
|
|
6995
6996
|
}
|
|
6996
6997
|
/**
|
|
@@ -7046,12 +7047,13 @@ async function confirmTx(rpc, txId, confirmOptions, blockHashCtx) {
|
|
|
7046
7047
|
* @param payer payer of the transaction
|
|
7047
7048
|
* @param blockhash recent blockhash to use in the transaction
|
|
7048
7049
|
* @param additionalSigners non-feepayer signers to include in the transaction
|
|
7050
|
+
* @param lookupTableAccounts lookup table accounts to include in the transaction
|
|
7049
7051
|
*/
|
|
7050
|
-
function buildAndSignTx(instructions, payer, blockhash, additionalSigners = []) {
|
|
7052
|
+
function buildAndSignTx(instructions, payer, blockhash, additionalSigners = [], lookupTableAccounts) {
|
|
7051
7053
|
if (additionalSigners.includes(payer))
|
|
7052
7054
|
throw new Error('payer must not be in additionalSigners');
|
|
7053
7055
|
const allSigners = [payer, ...additionalSigners];
|
|
7054
|
-
const tx = buildTx(instructions, payer.publicKey, blockhash);
|
|
7056
|
+
const tx = buildTx(instructions, payer.publicKey, blockhash, lookupTableAccounts);
|
|
7055
7057
|
tx.sign(allSigners);
|
|
7056
7058
|
return tx;
|
|
7057
7059
|
}
|