Skip to content

Commit

Permalink
Fix getPublicKeyTypeUrl sign order
Browse files Browse the repository at this point in the history
  • Loading branch information
BoThe1K committed Oct 18, 2024
1 parent 210fed0 commit 61f5a3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/stores/src/account/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand All @@ -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";
}

Expand Down

0 comments on commit 61f5a3b

Please sign in to comment.