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

impr(erc20): Add check to remove tokenPair if contract is suicided #180

Merged
merged 10 commits into from
Jan 2, 2022

Conversation

danburck
Copy link
Contributor

@danburck danburck commented Dec 16, 2021

Description

This PR removes a token pair when the erc20 conversion is called on a suicided contract's token pair.

Note that this PR requires a new ethermint release

Closes https://linear.app/tharsis/issue/ENG-360/erc20-module-doesnt-consider-token-pairs-with-suicided-contracts

@linear
Copy link

linear bot commented Dec 16, 2021

ENG-360 erc20 module doesnt consider token pairs with suicided contracts

tx would just fail, but that’s a great question and we should check if the contract exists before doing  the conversion. If it doesn’t we should remove the token pair from the store

@danburck danburck marked this pull request as ready for review December 31, 2021 22:50
@fedekunze fedekunze enabled auto-merge (squash) January 2, 2022 11:41
@fedekunze fedekunze merged commit 71c4413 into main Jan 2, 2022
@fedekunze fedekunze deleted the ENG-360-token-pair-with-suicided-contracts branch January 2, 2022 11:45
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