Skip to content

Commit

Permalink
crypto: use executeTransaction legacy if version < 0.18 (MystenLabs#6519
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joyqvq authored Dec 1, 2022
1 parent 1c711c1 commit d34c417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/typescript/src/providers/json-rpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit d34c417

Please sign in to comment.