Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eth-flow): set chainId explicitly when sending ethFlow tx #5244

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

alfetopito
Copy link
Collaborator

Summary

Explicitly sets chainId when sending EthFlow tx

Background

Despite us having already introduced some checks to try to prevent users from sending EthFlow txs to the wrong chain (#4629), it still happened again.

It can be then that somehow the wallet has a wrong network and sends the tx from the wrong one.
This change attempts to force the chain upon the wallet so that doesn't happen.

To Test

  1. Extensively test ethflow orders

@alfetopito alfetopito added the RELEASE Included in the release that is being closed label Dec 20, 2024
@alfetopito alfetopito self-assigned this Dec 20, 2024
Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am
cowfi ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am
explorer-dev ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am
sdk-tools ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am
swap-dev ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am
widget-configurator ✅ Ready (Inspect) Visit Preview Dec 20, 2024 11:38am

Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've retested positive/cancellation/expiration flows on every chain besides Ethereum (on Ethereum order expiration only) with:

  • desktop+MM extension
  • inside MM
  • desktop + MM WC
  • Mobile Chrome+MM WC

Seems to work fine!

@alfetopito
Copy link
Collaborator Author

Proceeding with a hotfix release, please post merge review

@alfetopito alfetopito merged commit 983536d into main Dec 20, 2024
12 of 13 checks passed
@alfetopito alfetopito deleted the fix/ethflow-wrong-chain branch December 20, 2024 15:40
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! only nitpicks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants