mirror of
https://github.com/placeholder-soft/tokenbound.git
synced 2026-01-12 17:02:56 +08:00
Added zero check to account proxy constructor
This commit is contained in:
@@ -562,4 +562,9 @@ contract AccountTest is Test {
|
||||
|
||||
assertEq(returnValue, 12345);
|
||||
}
|
||||
|
||||
function testProxyZeroAddressInit() public {
|
||||
vm.expectRevert(InvalidImplementation.selector);
|
||||
new AccountProxy(address(0));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user