hyperlane-warp-ui-template
hyperlane-warp-ui-template copied to clipboard
Message signed on the wrong chain
Context
A user ended up signing a warp route transfer intended from inEVM on zkSync [discord]
Investigation
As per zksync and etherscan this happened a few times on other chains as well.
@jmrossy suspects imperfect wallet switching behavior within https://github.com/wevm/wagmi for this.
Potential Solutions
Some workarounds are:
- adding more explicit wallet chain checks after switching (possibly hacky)
- upgrading to wagmi 2
- Possibly more user prompts to make sure that they are signing on the right chain (unfortunately wallets don't indicate the presence of calldata for a call to a non-existing contract)