Skip to content

Commit 9af1ffa

Browse files
committed
fmt
1 parent 51c3e9a commit 9af1ffa

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

test/Intent.t.sol

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)