Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Fix: forking value and code deletion/destruction #482

Merged
merged 4 commits into from
Sep 13, 2019

Conversation

davidmurdoch
Copy link
Member

@davidmurdoch davidmurdoch commented Sep 12, 2019

This fixes an issue where data deleted from a forked chain that previously existed on the originating chain can't actually be deleted.

This fixes the issue for storage and for contract code. It doesn't do anything for accounts because I don't think accounts can't be deleted? If I'm wrong we can add in the keyIsDeleted guards around forked account lookup too.

Deletion is not block-number aware and only looks at the head, this is a known issue with most of the forking methods that I hope to finally fix soon.

Fixes #446 and #474.

@coveralls
Copy link

coveralls commented Sep 12, 2019

Coverage Status

Coverage increased (+0.03%) to 82.311% when pulling e087afa on fix/forking-deletion into 9b5a54b on develop.

Copy link
Contributor

@nicholasjpaterno nicholasjpaterno left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

BUG: not possible to delete storage on forked chain
3 participants