node icon indicating copy to clipboard operation
node copied to clipboard

Chain ID mismatch in EIP712 ante handler prevents Ledger use for Cosmos operations

Open fadeev opened this issue 3 months ago • 1 comments

Users are currently unable to perform Cosmos send, staking, and other operations with Ledger.

The root cause appears to be a mismatch in the EIP712 ante handler:

  • The chain ID is set as zetachain_7000-1
  • The expected value is just 7000

This mismatch causes errors such as:

failed to parse chain-id: zetachain_7000-1: strconv.ParseUint: parsing "zetachain_7000-1": invalid syntax [zeta-chain/[email protected]/ante/cosmos/eip712.go:195]

Since the incorrect chain ID is on-chain, this cannot be resolved externally.

References:

https://github.com/zeta-chain/evm/blob/82cf029c0ddc6a89a5cce64c464e04312325a294/ante/cosmos/eip712.go#L129 https://github.com/zeta-chain/evm/blob/82cf029c0ddc6a89a5cce64c464e04312325a294/ante/cosmos/eip712.go#L136 https://github.com/zeta-chain/evm/blob/82cf029c0ddc6a89a5cce64c464e04312325a294/ante/cosmos/eip712.go#L193

fadeev avatar Sep 19 '25 12:09 fadeev

Does it block using Ledger as well through the CLI?

lumtis avatar Sep 19 '25 15:09 lumtis