Skip to content

Commit 20074f0

Browse files
committed
fix: deploy script out of gas error
1 parent f86a1c1 commit 20074f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/Zenith.s.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ contract ZenithScript is Script {
1414
vm.startBroadcast();
1515
z = new Zenith(defaultRollupChainId, withdrawalAdmin, sequencerAdmin);
1616
// send some ETH to newly deployed Zenith to populate some rollup state
17-
payable(address(z)).transfer(0.00123 ether);
17+
z.enter{value: 0.00123 ether}(z.defaultRollupChainId(), msg.sender);
1818
}
1919

2020
// NOTE: script must be run using SequencerAdmin key

src/Passage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {IERC20} from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
77
/// and enables Builders to fulfill requests to exchange tokens on the Rollup for tokens on the Host.
88
contract Passage {
99
/// @notice The chainId of rollup that Ether will be sent to by default when entering the rollup via fallback() or receive().
10-
uint256 immutable defaultRollupChainId;
10+
uint256 public immutable defaultRollupChainId;
1111

1212
/// @notice The address that is allowed to withdraw funds from the contract.
1313
address public immutable withdrawalAdmin;

0 commit comments

Comments
 (0)