@lavarage/sdk 6.8.5 → 6.8.7

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.mjs CHANGED
@@ -1248,7 +1248,7 @@ function withdrawFunds(lavarageProgram, params) {
1248
1248
  function createOffer(lavarageProgram, params) {
1249
1249
  return __async(this, null, function* () {
1250
1250
  let nodeWalletAccount, nodeWalletSigner, createNodeWalletInstruction, nodeWalletPubKey;
1251
- if (params.mint === "So11111111111111111111111111111111111111112") {
1251
+ if (params.quoteMint === "So11111111111111111111111111111111111111112") {
1252
1252
  const nodeWallets = yield lavarageProgram.account.nodeWallet.all();
1253
1253
  nodeWalletAccount = nodeWallets.find(
1254
1254
  (wallet) => wallet.account.nodeOperator.equals(new PublicKey(params.poolOwner))
@@ -1266,7 +1266,7 @@ function createOffer(lavarageProgram, params) {
1266
1266
  };
1267
1267
  }
1268
1268
  }
1269
- if (!nodeWalletAccount) {
1269
+ if (!(nodeWalletAccount == null ? void 0 : nodeWalletAccount.account)) {
1270
1270
  const isSOL = params.quoteMint === "So11111111111111111111111111111111111111112";
1271
1271
  const {
1272
1272
  instruction: instruction2,