-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: incorporate child #537
base: main
Are you sure you want to change the base?
Conversation
637ba30
to
5db356d
Compare
5db356d
to
6b29052
Compare
@Eikix ready khap |
new TupleLogStruct(data=evm.value.logs.value.data, len=evm.value.logs.value.len + len) | ||
); | ||
|
||
let new_refund_counter = evm.value.refund_counter + child_evm.value.refund_counter; |
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 could overflow. Add a comment why this cannot or add a check to ensure it does not.
Same for gas left.
// they were moved into the Evm, which we just squashed. | ||
|
||
// No need to squash the env's `state` and `transient_storage` because it was handled in `rollback_transaction`, | ||
// when we squashed and appended the prev keys to the parent's state and transient storage segments. |
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.
why rollback_transaction is mentioned even though it is the success case? Shouldn't this be commit_transaction?
// No need to squash the message's `accessed_addresses` and `accessed_storage_keys` because | ||
// they were moved into the Evm, which we just squashed. |
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.
I am not sure about this formulation. It should explicitly say that the those dict are shared between the message and the Evm for more context?
Closes #531