-
Notifications
You must be signed in to change notification settings - Fork 50
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
refactor: Separate pyevm implementation from environment #134
refactor: Separate pyevm implementation from environment #134
Conversation
Preparation to handle vyperlang#104
boa/vm/py_evm.py
Outdated
return self.vm.state.snapshot() | ||
|
||
def anchor(self): | ||
return self.vm.patch.anchor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably anchor evm state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall design looks great! left some comments on specifics
18e821c
to
913840e
Compare
boa/vm/py_evm.py
Outdated
self.vm = self.chain.get_vm() | ||
self.vm.__class__._state_class.account_db_class = account_db_class | ||
|
||
self.vm.patch = VMPatcher(self.vm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can probably promote VMPatcher to self.patch
instead of inside of self.vm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(it should probably be part of our "EVM API")
… assignment This was caused by a typo, the property block_id was removed in vyperlang#134 Another typo broke the time travel tests
What I did
I have separated the
environment
logic from the pyevm implementation details.How I did it
How to verify it
Description for the changelog
N/A
Cute Animal Picture