Skip to content

Commit

Permalink
Merge pull request #4 from OffchainLabs/hostio-remove-extra
Browse files Browse the repository at this point in the history
Remove blockhash and difficulty from unit tests
  • Loading branch information
rachel-bousfield authored Jul 7, 2023
2 parents 88e9fa0 + 623a8f0 commit 2284688
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 2284688

Please sign in to comment.