Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Dec 18, 2024
1 parent a9768e1 commit f491ebc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/scripts/DeployLocal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ contract DeployLocal is Script {
// of messages originating from BridgeHub
uint256 initialDeposit = vm.envUint("GATEWAY_PROXY_INITIAL_DEPOSIT");

payable(gateway).safeNativeTransfer(initialDeposit);
IGateway(address(gateway)).depositEther{value: initialDeposit}();

// Deploy MockGatewayV2 for testing
new MockGatewayV2();
Expand Down
2 changes: 1 addition & 1 deletion contracts/scripts/FundGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract FundGateway is Script {
uint256 initialDeposit = vm.envUint("GATEWAY_PROXY_INITIAL_DEPOSIT");
address gatewayAddress = vm.envAddress("GATEWAY_PROXY_CONTRACT");

payable(gatewayAddress).safeNativeTransfer(initialDeposit);
IGateway(address(gatewayAddress)).depositEther{value: initialDeposit}();

vm.stopBroadcast();
}
Expand Down

0 comments on commit f491ebc

Please sign in to comment.