Skip to content

Commit

Permalink
Merge pull request #12 from OffchainLabs/get_difficulty
Browse files Browse the repository at this point in the history
add getBlockDifficulty to mock simple
  • Loading branch information
gzeoneth authored May 25, 2023
2 parents 3b5a0dc + 7436762 commit f79f136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mocks/Simple.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ contract Simple {
return block.number;
}

function getBlockDifficulty() external view returns (uint256) {
return block.difficulty;
}

function noop() external pure {}

function pleaseRevert() external pure {
Expand Down

0 comments on commit f79f136

Please sign in to comment.