Skip to content

Conversation

@spencer-tb
Copy link
Collaborator

@spencer-tb spencer-tb commented Jul 24, 2023

💡 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

Copy link
Member

@marioevz marioevz left a 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 :)

@spencer-tb spencer-tb force-pushed the tests-eip4788 branch 4 times, most recently from cd31f5b to 2926ec4 Compare July 27, 2023 20:54
Copy link
Member

@marioevz marioevz left a 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!

@spencer-tb spencer-tb changed the title WIP: Beacon Block Root Tests EIP-4788 Initial Beacon Block Root Tests EIP-4788 Aug 1, 2023
@spencer-tb spencer-tb marked this pull request as ready for review August 1, 2023 09:30
@spencer-tb
Copy link
Collaborator Author

@marioevz I've added the remaining tests, comments to be addressed within this issue: #236

I will create separate PR for these. If you are happy to merge this into master we could create a devnet-8 pre-release :D

@spencer-tb spencer-tb requested a review from marioevz August 1, 2023 09:56
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

LGTM :)

@spencer-tb spencer-tb merged commit 4aa816d into ethereum:main Aug 1, 2023
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