From 2a60e6fef9dfa84a61e27aa801e8c82b3d5ca6f5 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 26 Dec 2023 13:51:17 +0800 Subject: [PATCH] using dynamic sdk version --- src/libs/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/client.ts b/src/libs/client.ts index f0188dad..2a823c7d 100644 --- a/src/libs/client.ts +++ b/src/libs/client.ts @@ -56,7 +56,7 @@ export class CosmosRestClient extends BaseRestClient { req = findApiProfileByChain(chain.chainName) // if not found. try sdk version if(!req && chain.versions?.cosmosSdk) { - req = findApiProfileBySDKVersion(chain.versions?.cosmosSdk) + req = findApiProfileBySDKVersion(localStorage.getItem(`sdk_version_${chain.chainName}`) || chain.versions?.cosmosSdk) } } return new CosmosRestClient(endpoint, req || DEFAULT)