Skip to content

Commit 2fd851d

Browse files
committed
refactor: simplify CheckBalance deployment by removing unused parameters from activeNetworkConfig
1 parent 9ae88eb commit 2fd851d

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

script/DeployCheckBalance.s.sol

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,11 @@ contract DeployCheckBalance is Script {
99
function run() public {
1010
HelperConfig helperConfig = new HelperConfig();
1111
CheckBalance checkBalance;
12-
(
13-
string memory chainBaseUrl,
14-
address tokenAddress,
15-
address subscriber,
16-
address router,
17-
bytes32 donID,
18-
19-
) = helperConfig.activeNetworkConfig();
12+
(, , , address router, bytes32 donID, ) = helperConfig
13+
.activeNetworkConfig();
2014

2115
vm.startBroadcast();
22-
checkBalance = new CheckBalance(
23-
chainBaseUrl,
24-
tokenAddress,
25-
subscriber,
26-
router,
27-
donID
28-
);
16+
checkBalance = new CheckBalance(router, donID);
2917
vm.stopBroadcast();
3018
}
3119
}

0 commit comments

Comments
 (0)