-
Notifications
You must be signed in to change notification settings - Fork 186
Initial Beacon Block Root Tests EIP-4788 #223
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
Conversation
87ce9e3 to
fb787ac
Compare
marioevz
left a comment
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.
Some comments! It looks pretty good so far :)
tests/cancun/eip4788_beacon_root/test_beacon_root_precompile.py
Outdated
Show resolved
Hide resolved
cd31f5b to
2926ec4
Compare
marioevz
left a comment
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.
Some more comments, looks great so far!
8e6b949 to
549f154
Compare
Co-authored-by: Mario Vega <marioevz@gmail.com>
marioevz
left a comment
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.
LGTM :)
💡 Initial tests for EIP-4788:
https://eips.ethereum.org/EIPS/eip-4788
Issue: #150
Remaining tests -> moved to #236
🧪 Test Cases
test_beacon_root_precompile_calls: call the pre-compile across various contexts (CALL,DELEGATECALL, etc) using valid and invalid call gas, checks for the correct pc and call return values.test_beacon_root_precompile_timestamps: call the pre-compile using valid/invalid timestamps, checks for the correct pc return value.test_beacon_root_equal_to_timestamp: call the pre-compile where timestamp = beacon block root.test_beacon_root_tx_timestamp_collisions: call the pre-compile multiple times in one tx, using different timestamps that have equal timestamp indexes.✅ Remaining Tasks
Add remaining tests-> moved to Remaining Beacon Block Root Tests EIP-4788 #236types.py, and add payload field for hive tests.