using dynamic sdk version
This commit is contained in:
parent
84e26e26ad
commit
2a60e6fef9
@ -56,7 +56,7 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
|
|||||||
req = findApiProfileByChain(chain.chainName)
|
req = findApiProfileByChain(chain.chainName)
|
||||||
// if not found. try sdk version
|
// if not found. try sdk version
|
||||||
if(!req && chain.versions?.cosmosSdk) {
|
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)
|
return new CosmosRestClient(endpoint, req || DEFAULT)
|
||||||
|
Loading…
Reference in New Issue
Block a user