From d34c417247be1949ff9409c83e3d9e36828be81f Mon Sep 17 00:00:00 2001 From: Joy Wang <108701016+joyqvq@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:51:06 -0500 Subject: [PATCH] crypto: use executeTransaction legacy if version < 0.18 (#6519) --- sdk/typescript/src/providers/json-rpc-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/typescript/src/providers/json-rpc-provider.ts b/sdk/typescript/src/providers/json-rpc-provider.ts index 8bd665996ad8e..55533ce26d92e 100644 --- a/sdk/typescript/src/providers/json-rpc-provider.ts +++ b/sdk/typescript/src/providers/json-rpc-provider.ts @@ -553,7 +553,7 @@ export class JsonRpcProvider extends Provider { try { let resp; let version = await this.getRpcApiVersion(); - if (version?.major === 0 && version?.minor < 19) { + if (version?.major === 0 && version?.minor < 18) { resp = await this.client.requestWithType( 'sui_executeTransaction', [txnBytes.toString(), signatureScheme, signature.toString(), pubkey.toString(), requestType],