diff --git a/packages/stores/src/account/utils.ts b/packages/stores/src/account/utils.ts index 3dc714cbab..037e28464a 100644 --- a/packages/stores/src/account/utils.ts +++ b/packages/stores/src/account/utils.ts @@ -101,10 +101,6 @@ export function getPublicKeyTypeUrl({ const chainIsStratos = chainId.startsWith("stratos"); const useEthereumSign = chainFeatures.includes("eth-key-sign"); - if (!useEthereumSign) { - return "/cosmos.crypto.secp256k1.PubKey"; - } - if (chainIsInjective) { return "/injective.crypto.v1beta1.ethsecp256k1.PubKey"; } @@ -113,6 +109,10 @@ export function getPublicKeyTypeUrl({ return "/stratos.crypto.v1.ethsecp256k1.PubKey"; } + if (!useEthereumSign) { + return "/cosmos.crypto.secp256k1.PubKey"; + } + return "/ethermint.crypto.v1.ethsecp256k1.PubKey"; }