Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

feat: add overwrite param when update eth addr reg #119

Merged
merged 4 commits into from
May 11, 2022

Conversation

magicalne
Copy link
Contributor

Add overwrite param when updating mapping between eth addr and script hash. So that we can choose to overwrite mapping or not if there is an address collision.

@magicalne magicalne requested review from jjyr and zeroqn as code owners May 9, 2022 03:28
@jjyr jjyr requested a review from Flouse May 9, 2022 09:32
Copy link
Collaborator

@Flouse Flouse left a comment

Choose a reason for hiding this comment

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

When overwrite == true, I think we should delete the old mapping data.

@magicalne magicalne force-pushed the fix_addr_collision branch from e5ed636 to 05fc487 Compare May 10, 2022 07:26
@magicalne magicalne force-pushed the fix_addr_collision branch from 05fc487 to 4c7ec03 Compare May 10, 2022 07:30
@magicalne magicalne requested review from jjyr and Flouse May 10, 2022 07:56
@magicalne
Copy link
Contributor Author

When overwrite == true, I think we should delete the old mapping data.

Done.

@jjyr
Copy link
Collaborator

jjyr commented May 11, 2022

We can clear the existed mapping record when overwrite is true, thus, we do not need to call another method. I have pushed a commit to do this please review @magicalne

Flouse added a commit to Flouse/godwoken-docker-prebuilds that referenced this pull request May 11, 2022
GODWOKEN_REF := develop
GODWOKEN_SCRIPTS_REF := refs/pull/119/merge # godwokenrises/godwoken-scripts#119
@jjyr jjyr merged commit d983fb3 into godwokenrises:master May 11, 2022
Flouse added a commit to Flouse/godwoken-docker-prebuilds that referenced this pull request Jun 6, 2022
GODWOKEN_REF := develop
GODWOKEN_SCRIPTS_REF := refs/pull/119/merge # godwokenrises/godwoken-scripts#119
@magicalne magicalne deleted the fix_addr_collision branch July 21, 2022 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants