@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.mjs
CHANGED
|
@@ -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,
|
|
@@ -1312,10 +1312,7 @@ function createOffer(lavarageProgram, params) {
|
|
|
1312
1312
|
}).compileToV0Message();
|
|
1313
1313
|
if (nodeWalletSigner) {
|
|
1314
1314
|
const transaction = new VersionedTransaction(messageV0);
|
|
1315
|
-
transaction.
|
|
1316
|
-
nodeWalletSigner.publicKey,
|
|
1317
|
-
nodeWalletSigner.secretKey
|
|
1318
|
-
);
|
|
1315
|
+
transaction.sign([nodeWalletSigner]);
|
|
1319
1316
|
return transaction;
|
|
1320
1317
|
}
|
|
1321
1318
|
return new VersionedTransaction(messageV0);
|