fix: full coverage on upgrade proxy

This commit is contained in:
rymnc 2024-01-24 16:15:24 +05:30
parent be4b10b215
commit 6c7e59df6d
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34

View File

@ -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);
}
}