Skip to content

Commit

Permalink
Use deploychain.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
chunter-cb committed Nov 7, 2024
1 parent d1584b2 commit fece3af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 1 addition & 7 deletions script/DeploySystem.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ contract DeploySystem is Deploy {

bytes32 batcherHash = bytes32(uint256(uint160(cfg.batchSenderAddress())));

address customGasTokenAddress = Constants.ETHER;
if (cfg.useCustomGasToken()) {
customGasTokenAddress = cfg.customGasTokenAddress();
console.log("configured to use custom gas token %s", customGasTokenAddress);
}

_upgradeAndCallViaSafe({
_proxy: payable(systemConfigProxy),
_implementation: systemConfig,
Expand All @@ -256,7 +250,7 @@ contract DeploySystem is Deploy {
disputeGameFactory: mustGetAddress("DisputeGameFactoryProxy"),
optimismPortal: mustGetAddress("OptimismPortalProxy"),
optimismMintableERC20Factory: mustGetAddress("OptimismMintableERC20FactoryProxy"),
gasPayingToken: customGasTokenAddress
gasPayingToken: Constants.ETHER
})
)
)
Expand Down
5 changes: 4 additions & 1 deletion src/DeployChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ contract DeployChain {
uint32 basefeeScalar,
uint32 blobbasefeeScalar,
uint64 gasLimit,
address gasToken,
address batcherAddress,
address unsafeBlockSigner,
address proposer
Expand All @@ -126,6 +127,7 @@ contract DeployChain {
basefeeScalar,
blobbasefeeScalar,
gasLimit,
gasToken,
batcherAddress,
unsafeBlockSigner,
batchInbox,
Expand Down Expand Up @@ -213,6 +215,7 @@ contract DeployChain {
uint32 basefeeScalar,
uint32 blobbasefeeScalar,
uint64 gasLimit,
address gasToken,
address batcherAddress,
address unsafeBlockSigner,
address batchInbox,
Expand Down Expand Up @@ -240,7 +243,7 @@ contract DeployChain {
disputeGameFactory: address(0),
optimismPortal: addresses.optimismPortal,
optimismMintableERC20Factory: addresses.optimismMintableERC20Factory,
gasPayingToken: address(0)
gasPayingToken: gasToken
})
});

Expand Down
2 changes: 1 addition & 1 deletion testnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ services:
dockerfile: testnet/Dockerfile
command: [ "bash", "./entrypoint-enclave.sh" ]
env_file:
- .env
- .env

0 comments on commit fece3af

Please sign in to comment.