Skip to content

fix: enforce NEVM chain check when connecting EVM wallet#66

Open
guilhermefleury wants to merge 1 commit intosyscoin:mainfrom
guilhermefleury:main
Open

fix: enforce NEVM chain check when connecting EVM wallet#66
guilhermefleury wants to merge 1 commit intosyscoin:mainfrom
guilhermefleury:main

Conversation

@guilhermefleury
Copy link
Copy Markdown

Closes #62

The bridge wasn't checking if the user was on the correct EVM chain.
When Pali Wallet was connected to any EVM chain, the bridge would skip the chain validation and allow the user to
proceed with the wrong network.

This fix enforces the NEVM chain check (0x39) in two places:

  • Before confirming the NEVM address (pre-set)
  • After the address is already set, in case the user switches chains mid-session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug-003] - The Bridge does not request EVM chain change

1 participant