Skip to content

Commit

Permalink
chore: uncomment etch test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir committed Jul 9, 2023
1 parent 1d81cf8 commit 1e4f206
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions testdata/cheats/Etch.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ contract EtchTest is DSTest {
assertEq(string(code), string(target.code));
}

// function testEtchNotAvailableOnPrecompiles() public {
// address target = address(1);
// bytes memory code = hex"1010";
// vm.expectRevert(
// bytes("Etch cannot be used on precompile addresses (N < 10). Please use an address bigger than 10 instead")
// );
// vm.etch(target, code);
// }
function testEtchNotAvailableOnPrecompiles() public {
address target = address(1);
bytes memory code = hex"1010";
vm.expectRevert(
bytes("Etch cannot be used on precompile addresses (N < 10). Please use an address bigger than 10 instead")
);
vm.etch(target, code);
}
}

0 comments on commit 1e4f206

Please sign in to comment.