Skip to content

Commit

Permalink
test: pin rpc test to block (#6420)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 24, 2023
1 parent 55dd5de commit d6d8de9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion testdata/cheats/Fork2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,12 @@ contract ForkTest is DSTest {
}

function testRpc() public {
// balance at block <https://etherscan.io/block/18332681>
vm.selectFork(mainnetFork);
string memory path = "fixtures/Rpc/balance_params.json";
string memory file = vm.readFile(path);
bytes memory result = vm.rpc("eth_getBalance", file);
assertEq(result, hex"10b7c11bcb51e6");
assertEq(hex"10b7c11bcb51e6", result);
}
}

Expand Down
2 changes: 1 addition & 1 deletion testdata/fixtures/Rpc/balance_params.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"]
["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "0x117BC09"]

0 comments on commit d6d8de9

Please sign in to comment.