fixe signing issue
This commit is contained in:
parent
84d0c33cae
commit
e83e38355f
@ -241,7 +241,7 @@ export async function sign(device, chainId, signerAddress, messages, fee, memo,
|
|||||||
// let signer
|
// let signer
|
||||||
// const hdpath = getHdPath(signerAddress)
|
// const hdpath = getHdPath(signerAddress)
|
||||||
const coinType = Number(hdpath[1])
|
const coinType = Number(hdpath[1])
|
||||||
const addr = device.startsWith('ledger') && coinType === 118 ? toSignAddress(signerAddress) : signerAddress
|
const addr = device.startsWith('ledger') && coinType !== 60 ? toSignAddress(signerAddress) : signerAddress
|
||||||
return client.sign(addr, messages, fee, memo, signerData)
|
return client.sign(addr, messages, fee, memo, signerData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user