Skip to content

Commit

Permalink
EIP-4399: add test cases (#5068)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin authored May 2, 2022
1 parent e349cc2 commit 2b59973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EIPS/eip-4399.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ The second category is comprised of applications that use the return value of th

## Test Cases

Testing this functionality goes beyond this document and should be done in a form of integration testing.
* In one of ancestors of `TRANSITION_BLOCK` deploy a contract that stores return value of `DIFFICULTY (0x44)` to the state
* Check that value returned by `DIFFICULTY (0x44)` in transaction executed within the parent of `TRANSITION_BLOCK` equals `difficulty` field value
* Check that value returned by `PREVRANDAO (0x44)` in transaction executed within `TRANSITION_BLOCK` equals `prevRandao` field value


## Security Considerations
Expand Down

0 comments on commit 2b59973

Please sign in to comment.