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: prevent mapping multiple denoms to same ERC20 #1346

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

byte-bandit
Copy link
Contributor

@byte-bandit byte-bandit commented Mar 5, 2025

Related Github tickets

Background

This change adds a check that prevents binding a denom to an ERC20 address that is already bound.

Important

This will prevent updating your ERC20 addresses against your own denoms even, but it could theoretically be implemented at a later stage.

Warning

The underlaying gravity bridge code was not written with more than one remote chain in mind. Therefore, after this change, it will not be possible to use the same Ethereum address for a denom on more than one remote chain, so deterministic addresses cannot be used anymore.

Testing completed

  • test coverage exists or has been added/updated
  • tested in a private testnet

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

@byte-bandit byte-bandit requested review from taariq and verabehr March 5, 2025 14:42
Copy link
Contributor

@taariq taariq left a comment

Choose a reason for hiding this comment

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

ACK. Smol change. Big impact.

@byte-bandit byte-bandit merged commit 29d8b11 into palomachain:master Mar 5, 2025
4 checks passed
@byte-bandit byte-bandit deleted the clohr/skyway-remapping branch March 5, 2025 14:47
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.

2 participants