web-examples
web-examples copied to clipboard
fix: Generate EIP-712 messages for active chain id
The domain.chainId attribute of the EIP-712 messages should match the current active chain of the client as specified on the EIP-712 spec:
uint256 chainId the EIP-155 chain id. The user-agent should refuse signing if it does not match the currently active chain.
The Wagmi library for instance throws an error when the chainId specified on the EIP-712 message does not match the current active chain (see code here).
- Update the EIP-712 message example to set the correct
domain.chainIdattribute for the active chain
@RuggeroCino is attempting to deploy a commit to the WalletConnect Team on Vercel.
A member of the Team first needs to authorize it.