@lavarage/sdk 6.8.6 → 6.8.8

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/index.js CHANGED
@@ -1299,7 +1299,7 @@ function createOffer(lavarageProgram, params) {
1299
1299
  };
1300
1300
  }
1301
1301
  }
1302
- if (!nodeWalletAccount) {
1302
+ if (!(nodeWalletAccount == null ? void 0 : nodeWalletAccount.account)) {
1303
1303
  const isSOL = params.quoteMint === "So11111111111111111111111111111111111111112";
1304
1304
  const {
1305
1305
  instruction: instruction2,
@@ -1345,10 +1345,7 @@ function createOffer(lavarageProgram, params) {
1345
1345
  }).compileToV0Message();
1346
1346
  if (nodeWalletSigner) {
1347
1347
  const transaction = new import_web3.VersionedTransaction(messageV0);
1348
- transaction.addSignature(
1349
- nodeWalletSigner.publicKey,
1350
- nodeWalletSigner.secretKey
1351
- );
1348
+ transaction.sign([nodeWalletSigner]);
1352
1349
  return transaction;
1353
1350
  }
1354
1351
  return new import_web3.VersionedTransaction(messageV0);