diff --git a/main.star b/main.star index 55654c4..69678d2 100644 --- a/main.star +++ b/main.star @@ -15,7 +15,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 b79a6f5..24d681d 100644 --- a/src/package_io/input_parser.star +++ b/src/package_io/input_parser.star @@ -244,7 +244,7 @@ def default_op_contract_deployer_params(): } -def default_ethereum_config(): +def default_ethereum_package_network_params(): return { "network_params": { "preset": "minimal", @@ -256,8 +256,7 @@ def default_ethereum_config(): "balance": "0ETH", "code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3", "storage": {}, - "nonce": 0, - "secretKey": "0x", + "nonce": "1", } } ),