From f299d8229ef27e0b3b0d07867596140c54b6eb32 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 19 Sep 2022 07:49:59 +0800 Subject: [PATCH] using amimo for keplr signing --- src/libs/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/utils.js b/src/libs/utils.js index 27c5bf96..6645bbfe 100644 --- a/src/libs/utils.js +++ b/src/libs/utils.js @@ -247,10 +247,11 @@ export async function sign(device, chainId, signerAddress, messages, fee, memo, throw new Error('Please install keplr extension') } await window.keplr.enable(chainId) - const signer = window.getOfflineSigner(chainId) if (isEvmosBasedChain(chainId)) { + const signer = window.getOfflineSigner(chainId) client = await SigningKeplerEthermintClient.offline(signer) } else { + const signer = window.getOfflineSignerOnlyAmino(chainId) client = await SigningStargateClient.offline(signer) } }