Commit a3ad0308 authored by Kevin Today's avatar Kevin Today Committed by GitHub

feat: Make args optional (#190)

Makes the `args` argument to `main.star#run` optional, so that this is
even easier to import in other code chunks
parent c1bf13ee
...@@ -31,7 +31,7 @@ MOCK_MEV_TYPE = "mock" ...@@ -31,7 +31,7 @@ MOCK_MEV_TYPE = "mock"
FULL_MEV_TYPE = "full" FULL_MEV_TYPE = "full"
PATH_TO_PARSED_BEACON_STATE = "/genesis/output/parsedBeaconState.json" PATH_TO_PARSED_BEACON_STATE = "/genesis/output/parsedBeaconState.json"
def run(plan, args): def run(plan, args = {}):
args_with_right_defaults, args_with_defaults_dict = parse_input.parse_input(plan, args) args_with_right_defaults, args_with_defaults_dict = parse_input.parse_input(plan, args)
num_participants = len(args_with_right_defaults.participants) num_participants = len(args_with_right_defaults.participants)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment