Skip to content

Commit

Permalink
Remove blockhash and difficulty from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 committed Jul 6, 2023
1 parent 55cab43 commit c8b5ad0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mocks/Program.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ contract ProgramTest {
address ethPrecompile = address(0x01);

result = assert256(result, "block number ", block.number - 1);
result = assert256(result, "block hash ", uint256(blockhash(block.number - 1)));
result = assert256(result, "chain id ", block.chainid);
result = assert256(result, "base fee ", block.basefee);
result = assert256(result, "gas price ", tx.gasprice);
result = assert256(result, "gas limit ", block.gaslimit);
result = assert256(result, "value ", 0);
result = assert256(result, "difficulty ", block.difficulty);
result = assert256(result, "timestamp ", block.timestamp);
result = assert256(result, "balance ", fundedAccount.balance);
result = assert256(result, "rust address ", uint256(uint160(program)));
Expand Down

0 comments on commit c8b5ad0

Please sign in to comment.