From 79a542b5f56185c20caa0495f4bcead441b1d391 Mon Sep 17 00:00:00 2001 From: Luke Steyn Date: Wed, 24 Jan 2024 17:28:39 +0300 Subject: [PATCH] Replace sendRawTransaction with sendTransaction --- sdk/src/driftClient.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk/src/driftClient.ts b/sdk/src/driftClient.ts index 5502dd7b6..6dd23f558 100644 --- a/sdk/src/driftClient.ts +++ b/sdk/src/driftClient.ts @@ -2690,9 +2690,11 @@ export class DriftClient { txKeys ); - const { txSig, slot } = await this.txSender.sendRawTransaction( - signedVersionedMarketOrderTx.serialize(), - this.opts + const {txSig, slot} = await this.sendTransaction( + signedVersionedMarketOrderTx, + [], + this.opts, + true ); this.perpMarketLastSlotCache.set(orderParams.marketIndex, slot);