Added zero check to account proxy constructor

This commit is contained in:
Jayden Windle
2023-06-27 10:37:10 -07:00
parent 57481d42ba
commit a30654c16a
2 changed files with 9 additions and 0 deletions

View File

@@ -562,4 +562,9 @@ contract AccountTest is Test {
assertEq(returnValue, 12345);
}
function testProxyZeroAddressInit() public {
vm.expectRevert(InvalidImplementation.selector);
new AccountProxy(address(0));
}
}