From 61f5a3be95d58b430e9d318540628f33cd22c5b3 Mon Sep 17 00:00:00 2001 From: BoThe1K Date: Fri, 18 Oct 2024 18:29:47 +0200 Subject: [PATCH] Fix getPublicKeyTypeUrl sign order --- packages/stores/src/account/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"; }