From c062de051ef49bcb9905f4f530c5a47e0d5548bd Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Wed, 9 Oct 2024 16:04:08 +0200 Subject: [PATCH] fix: contract string (#82) --- main.star | 4 +++- src/package_io/input_parser.star | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main.star b/main.star index 975c8e3..d66b297 100644 --- a/main.star +++ b/main.star @@ -18,7 +18,9 @@ def run(plan, args): """ plan.print("Parsing the L1 input args") # If no args are provided, use the default values with minimal preset - ethereum_args = args.get("ethereum_package", input_parser.default_ethereum_config()) + ethereum_args = args.get("ethereum_package", {}) + if "network_params" not in ethereum_args: + ethereum_args.update(input_parser.default_ethereum_package_network_params()) # need to do a raw get here in case only optimism_package is provided. # .get will return None if the key is in the config with a None value. diff --git a/src/package_io/input_parser.star b/src/package_io/input_parser.star index 001c62e..12f5e5b 100644 --- a/src/package_io/input_parser.star +++ b/src/package_io/input_parser.star @@ -188,7 +188,7 @@ def default_op_contract_deployer_params(): } -def default_ethereum_config(): +def default_ethereum_package_network_params(): return { "network_params": { "preset": "minimal", @@ -200,8 +200,7 @@ def default_ethereum_config(): "balance": "0ETH", "code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3", "storage": {}, - "nonce": 0, - "secretKey": "0x", + "nonce": "1", } } ),