Skip to content

Commit

Permalink
fix: contract string (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Oct 9, 2024
1 parent 914a808 commit c062de0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -200,8 +200,7 @@ def default_ethereum_config():
"balance": "0ETH",
"code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",
"storage": {},
"nonce": 0,
"secretKey": "0x",
"nonce": "1",
}
}
),
Expand Down

0 comments on commit c062de0

Please sign in to comment.