@drift-labs/sdk 2.109.0-beta.4 → 2.109.0-beta.5
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.109.0-beta.
|
|
1
|
+
2.109.0-beta.5
|
|
@@ -60,7 +60,7 @@ class BaseTxSender {
|
|
|
60
60
|
return this.txHandler.prepareTx(tx, additionalSigners, undefined, opts, preSigned);
|
|
61
61
|
}
|
|
62
62
|
async getVersionedTransaction(ixs, lookupTableAccounts, _additionalSigners, opts, blockhash) {
|
|
63
|
-
return this.txHandler.generateVersionedTransaction(blockhash, ixs, lookupTableAccounts, this.wallet);
|
|
63
|
+
return this.txHandler.generateVersionedTransaction(blockhash !== null && blockhash !== void 0 ? blockhash : (await this.connection.getLatestBlockhash()), ixs, lookupTableAccounts, this.wallet);
|
|
64
64
|
}
|
|
65
65
|
async sendVersionedTransaction(tx, additionalSigners, opts, preSigned) {
|
|
66
66
|
let signedTx;
|
|
@@ -60,7 +60,7 @@ class BaseTxSender {
|
|
|
60
60
|
return this.txHandler.prepareTx(tx, additionalSigners, undefined, opts, preSigned);
|
|
61
61
|
}
|
|
62
62
|
async getVersionedTransaction(ixs, lookupTableAccounts, _additionalSigners, opts, blockhash) {
|
|
63
|
-
return this.txHandler.generateVersionedTransaction(blockhash, ixs, lookupTableAccounts, this.wallet);
|
|
63
|
+
return this.txHandler.generateVersionedTransaction(blockhash !== null && blockhash !== void 0 ? blockhash : (await this.connection.getLatestBlockhash()), ixs, lookupTableAccounts, this.wallet);
|
|
64
64
|
}
|
|
65
65
|
async sendVersionedTransaction(tx, additionalSigners, opts, preSigned) {
|
|
66
66
|
let signedTx;
|
package/package.json
CHANGED
package/src/tx/baseTxSender.ts
CHANGED
|
@@ -156,7 +156,7 @@ export abstract class BaseTxSender implements TxSender {
|
|
|
156
156
|
blockhash?: BlockhashWithExpiryBlockHeight
|
|
157
157
|
): Promise<VersionedTransaction> {
|
|
158
158
|
return this.txHandler.generateVersionedTransaction(
|
|
159
|
-
blockhash,
|
|
159
|
+
blockhash ?? (await this.connection.getLatestBlockhash()),
|
|
160
160
|
ixs,
|
|
161
161
|
lookupTableAccounts,
|
|
162
162
|
this.wallet
|