web-examples icon indicating copy to clipboard operation
web-examples copied to clipboard

fix: Generate EIP-712 messages for active chain id

Open cgero-eth opened this issue 2 years ago • 1 comments

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.chainId attribute for the active chain

cgero-eth avatar Aug 09 '23 08:08 cgero-eth

@RuggeroCino is attempting to deploy a commit to the WalletConnect Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 09 '23 08:08 vercel[bot]