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 issue where libraries would get loaded at extreme timestamps and block numbers, also switch to the new hevm stripBytecodeMetadata #510

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

incertia
Copy link
Contributor

@incertia incertia commented Aug 24, 2020

loadLibraries would use (initialTimestamp, initialBlockNumber) as the delay property, causing block . number and block . timestamp to be incremented way more times than desired. we introduce a new initialVM that takes care of all this business for us so we can just use (0, 0), as well as extend the timestamp and block number business to the RPC (multicontract, we should probably also rename this) module.

hevm-0.37 contains the new stripBytecodeMetadata that actually works and is a copy of the version i introduced a while back, so we remove that bit of duplicated code as well.

@incertia incertia requested review from ggrieco-tob and arcz August 24, 2020 18:36
@incertia
Copy link
Contributor Author

incertia commented Sep 8, 2020

b8bc129 adds some intermediate hevm-0.41 version that we should aim to change before we release echidna, or do a beta release

@incertia incertia force-pushed the fix-timestamps branch 2 times, most recently from 6d31d70 to 148d0ce Compare September 9, 2020 15:36
@incertia
Copy link
Contributor Author

incertia commented Sep 9, 2020

newer hevm has been moved to #511 and this should just aim to fix some things

Copy link
Member

@ggrieco-tob ggrieco-tob left a comment

Choose a reason for hiding this comment

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

This needs a test. I'm working on that right now.

@ggrieco-tob
Copy link
Member

@incertia please take a look to the new test

@ggrieco-tob ggrieco-tob merged commit 9149d95 into master Sep 24, 2020
@ggrieco-tob ggrieco-tob deleted the fix-timestamps branch September 24, 2020 17:56
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