File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -135,25 +135,18 @@ contract IntentTest is Test {
135135 function test_InitializationWithZeroAddresses () public {
136136 // Deploy a new implementation
137137 Intent newImplementation = new Intent (false );
138-
138+
139139 // Prepare initialization data with zero gateway
140- bytes memory initDataZeroGateway = abi.encodeWithSelector (
141- Intent.initialize.selector ,
142- address (0 ),
143- router
144- );
145-
140+ bytes memory initDataZeroGateway = abi.encodeWithSelector (Intent.initialize.selector , address (0 ), router);
141+
146142 // Deploy proxy with zero gateway
147143 vm.expectRevert ("Gateway cannot be zero address " );
148144 new ERC1967Proxy (address (newImplementation), initDataZeroGateway);
149-
145+
150146 // Prepare initialization data with zero router
151- bytes memory initDataZeroRouter = abi.encodeWithSelector (
152- Intent.initialize.selector ,
153- address (gateway),
154- address (0 )
155- );
156-
147+ bytes memory initDataZeroRouter =
148+ abi.encodeWithSelector (Intent.initialize.selector , address (gateway), address (0 ));
149+
157150 // Deploy proxy with zero router
158151 vm.expectRevert ("Router cannot be zero address " );
159152 new ERC1967Proxy (address (newImplementation), initDataZeroRouter);
You can’t perform that action at this time.
0 commit comments