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

Replace delete() with put(0) - delete is broken for forked vms #5

Open
wants to merge 2 commits into
base: compound
Choose a base branch
from

Conversation

jflatow
Copy link

@jflatow jflatow commented Mar 11, 2020

Delete is deleting the storage locally, causing the fork to think it needs to re-fetch the data from the upstream the next time it is needed. This isn't correct since the value should actually be 0 after the delete.

This patch likely breaks the semantics around storage for e.g. Istanbul, so it's probably not the ultimate fix, however it fixes fork if needed, and includes a reproducible minimal example to test against.

@jflatow jflatow force-pushed the jflatow/unbreak-fork branch from 1a23aaa to 4c7e063 Compare May 21, 2020 22:44
@jflatow jflatow changed the base branch from jflatow/compound to compound May 21, 2020 22:47
@BlinkyStitt
Copy link

I'm having this exact issue. Any blockers on merging this?

@michwill
Copy link

Folks. Please. It's been months not weeks

achiko added a commit to achiko/ganache-core that referenced this pull request Jul 18, 2020
@davidlucid
Copy link

Please merge this, Truffle!

@mikeseese
Copy link

A generic solution was merged into the master repo in trufflesuite#612

@mikeseese
Copy link

Just wanted to let you know that it looks like we'll end up needing this solution to solve all the different use cases. I do think this is still a generic solution! Thanks again @jflatow for the work

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.

5 participants