mirror of
https://github.com/logos-messaging/waku-rlnv1-contract.git
synced 2026-01-06 00:03:08 +00:00
fix: full coverage on upgrade proxy
This commit is contained in:
parent
be4b10b215
commit
6c7e59df6d
@ -181,4 +181,11 @@ contract WakuRlnRegistryTest is Test {
|
||||
address newImpl = address(new WakuRlnRegistry());
|
||||
wakuRlnRegistry.upgradeTo(newImpl);
|
||||
}
|
||||
|
||||
function test__InvalidUpgrade() public {
|
||||
address newImpl = address(new WakuRlnRegistry());
|
||||
vm.prank(address(0));
|
||||
vm.expectRevert();
|
||||
wakuRlnRegistry.upgradeTo(newImpl);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user