fixe signing issue

This commit is contained in:
liangping 2022-08-25 09:14:29 +08:00
parent 84d0c33cae
commit e83e38355f

View File

@ -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)
} }