Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: contract string #82

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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