diff --git a/scripts/config.ts b/scripts/config.ts index 3236bd5..f07dcd1 100644 --- a/scripts/config.ts +++ b/scripts/config.ts @@ -266,9 +266,6 @@ function writeConfigs(argv: any) { "enable": true, "urls": ["http://das-mirror:9877"], }, - // TODO Fix das config to not need this redundant config - "parent-chain-node-url": argv.l1url, - "sequencer-inbox-address": "not_set" } }, "execution": { @@ -290,11 +287,8 @@ function writeConfigs(argv: any) { }, } - baseConfig.node["data-availability"]["sequencer-inbox-address"] = ethers.utils.hexlify(getChainInfo()[0]["rollup"]["sequencer-inbox"]); - if (argv.referenceDA) { (baseConfig as any).node["da"] = { - "mode": "external", "external-provider": { "enable": true, "with-writer": false, @@ -478,8 +472,10 @@ function writeL2DASCommitteeConfig(argv: any) { "enable": true, "enable-expiry": true }, - "sequencer-inbox-address": sequencerInboxAddr, - "parent-chain-node-url": argv.l1url + }, + "parent-chain": { + "node-url": argv.l1url, + "sequencer-inbox-address": sequencerInboxAddr }, "enable-rest": true, "enable-rpc": true, @@ -502,8 +498,6 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) { "enable": true, "enable-expiry": false }, - "sequencer-inbox-address": sequencerInboxAddr, - "parent-chain-node-url": argv.l1url, "rest-aggregator": { "enable": true, "sync-to-storage": { @@ -515,6 +509,10 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) { "urls": ["http://das-committee-a:9877", "http://das-committee-b:9877"], } }, + "parent-chain": { + "node-url": argv.l1url, + "sequencer-inbox-address": sequencerInboxAddr + }, "enable-rest": true, "enable-rpc": false, "log-level": "INFO",