Skip to content
Open
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
9 changes: 9 additions & 0 deletions test/legacy/L1ChugSplashProxy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,12 @@ contract L1ChugSplashProxy_Upgrading_Test is L1ChugSplashProxy_WithImplementatio
_proxyAsImplementation().setCode(RETURN_42_BYTECODE);
}
}
/// @notice Tests that the owner cannot set the owner to the zero address
function test_setOwner_whenOwnerZeroAddress_reverts() public {
vm.prank(owner);
vm.expectRevert();
proxy.setOwner(address(0));

vm.prank(owner);
assertEq(proxy.getOwner(), owner);
}