Skip to content

Commit e498979

Browse files
add delays so that SCW creation tx is processed on parent chain
1 parent 9b0b597 commit e498979

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function writeConfigs(argv: any) {
310310
if (argv.simple) {
311311
let simpleConfig = JSON.parse(baseConfJSON)
312312
simpleConfig.node.staker.enable = true
313-
simpleConfig.node.staker["use-smart-contract-wallet"] = false
313+
simpleConfig.node.staker["use-smart-contract-wallet"] = true
314314
simpleConfig.node.staker.dangerous["without-block-validator"] = true
315315
simpleConfig.node.sequencer = true
316316
simpleConfig.node.dangerous["no-sequencer-coordinator"] = true
@@ -325,7 +325,7 @@ function writeConfigs(argv: any) {
325325
} else {
326326
let validatorConfig = JSON.parse(baseConfJSON)
327327
validatorConfig.node.staker.enable = true
328-
validatorConfig.node.staker["use-smart-contract-wallet"] = false
328+
validatorConfig.node.staker["use-smart-contract-wallet"] = true
329329
let validconfJSON = JSON.stringify(validatorConfig)
330330
fs.writeFileSync(path.join(consts.configpath, "validator_config.json"), validconfJSON)
331331

@@ -367,7 +367,7 @@ function writeConfigs(argv: any) {
367367
const l3ChainInfoFile = path.join(consts.configpath, "l3_chain_info.json")
368368
l3Config.chain["info-files"] = [l3ChainInfoFile]
369369
l3Config.node.staker.enable = true
370-
l3Config.node.staker["use-smart-contract-wallet"] = false
370+
l3Config.node.staker["use-smart-contract-wallet"] = true
371371
l3Config.node.sequencer = true
372372
l3Config.execution["sequencer"].enable = true
373373
l3Config.node["dangerous"]["no-sequencer-coordinator"] = true

test-node.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ if $force_init; then
600600

601601
echo == Funding l2 funnel and dev key
602602
docker compose up --wait $INITIAL_SEQ_NODES
603+
sleep 45 # in case we need to create a smart contract wallet, allow for parent chain to recieve the contract creation tx and process it
603604
run_script bridge-funds --ethamount 100000 --wait
604605
run_script send-l2 --ethamount 100 --to l2owner --wait
605606
rollupAddress=`docker compose run --rm --entrypoint sh poster -c "jq -r '.[0].rollup.rollup' /config/deployed_chain_info.json | tail -n 1 | tr -d '\r\n'"`
@@ -691,6 +692,7 @@ if $force_init; then
691692

692693
echo == Funding l3 funnel and dev key
693694
docker compose up --wait l3node sequencer
695+
sleep 45 # in case we need to create a smart contract wallet, allow for parent chain to recieve the contract creation tx and process it
694696

695697
if $l3_token_bridge; then
696698
echo == Deploying L2-L3 token bridge

0 commit comments

Comments
 (0)