@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 +2 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/lending.ts +2 -5
- package/package.json +1 -1
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.
|
|
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);
|