-
Notifications
You must be signed in to change notification settings - Fork 12
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
LFVM: move addressInAccessList
to getAccessCost
#730
Conversation
cb264ee
to
e343d36
Compare
96fd6ca
to
6cf6dd6
Compare
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.
Looks good, just one remark regarding readability.
cc7d19e
to
f1c0567
Compare
f1c0567
to
7cfbdf6
Compare
addressInAccessList
calculateAccessCost
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 would say inlining this function into genericCall
is the best way forward.
7cfbdf6
to
2c6e0e6
Compare
calculateAccessCost
addressInAccessList
into genericCall
Relates to #616 |
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 like how this PR has simplified the gas cost handling and aligned it with the online reference specification. Will approve when the remaining remarks are covered.
824ad1d
to
9358579
Compare
9358579
to
5c85e26
Compare
bbbc07d
to
fd3ae4b
Compare
* add gas selfdestruct test * remove selfdestruct gas functions. integrate them into operation func * improve constants comments and remove unused gas constants * make functions for self destruction costs and tests them * add test for all selfdestruct dynamic costs * changes requested in review. add and use getAccessCost from #730 * fix typo and rephrase revision check * fix comment phrasing
This PR removes the function
addressInAccessList
and reworks its functionality intogetAccessCost
. It also adds comprehensive documentation for the values used, and a test for the different cases.Note: static call prices after berlin should be 0, and warm cost should be applied in dynamic cost calcualtion (https://eips.ethereum.org/EIPS/eip-2929). This changes are also applied in this PR.