using amimo for keplr signing
This commit is contained in:
parent
4e31f055d3
commit
f299d8229e
@ -247,10 +247,11 @@ export async function sign(device, chainId, signerAddress, messages, fee, memo,
|
|||||||
throw new Error('Please install keplr extension')
|
throw new Error('Please install keplr extension')
|
||||||
}
|
}
|
||||||
await window.keplr.enable(chainId)
|
await window.keplr.enable(chainId)
|
||||||
const signer = window.getOfflineSigner(chainId)
|
|
||||||
if (isEvmosBasedChain(chainId)) {
|
if (isEvmosBasedChain(chainId)) {
|
||||||
|
const signer = window.getOfflineSigner(chainId)
|
||||||
client = await SigningKeplerEthermintClient.offline(signer)
|
client = await SigningKeplerEthermintClient.offline(signer)
|
||||||
} else {
|
} else {
|
||||||
|
const signer = window.getOfflineSignerOnlyAmino(chainId)
|
||||||
client = await SigningStargateClient.offline(signer)
|
client = await SigningStargateClient.offline(signer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user