Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make tests compile with [email protected] #24

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1.5.2
branch = v1.6.0
6 changes: 3 additions & 3 deletions test/Rln.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contract RlnTest is Test {
// avoid precompiles, etc
// TODO: wrap both of these in a single function
assumePayable(to);
assumeNoPrecompiles(to);
assumeNotPrecompile(to);
vm.assume(to != address(0));

rln.register{value: MEMBERSHIP_DEPOSIT}(idCommitment);
Expand Down Expand Up @@ -118,7 +118,7 @@ contract RlnTest is Test {
function test__InvalidSlash__NoStake(uint256 idCommitment, address payable to) public {
// avoid precompiles, etc
assumePayable(to);
assumeNoPrecompiles(to);
assumeNotPrecompile(to);
vm.assume(to != address(0));

rln.register{value: MEMBERSHIP_DEPOSIT}(idCommitment);
Expand Down Expand Up @@ -171,7 +171,7 @@ contract RlnTest is Test {

function test__ValidWithdraw(address payable to) public {
assumePayable(to);
assumeNoPrecompiles(to);
assumeNotPrecompile(to);

uint256 idCommitment = 19014214495641488759237505126948346942972912379615652741039992445865937985820;

Expand Down