Skip to content

Commit

Permalink
feat: Make args optional (#190)
Browse files Browse the repository at this point in the history
Makes the `args` argument to `main.star#run` optional, so that this is
even easier to import in other code chunks
  • Loading branch information
mieubrisse authored Sep 11, 2023
1 parent c1bf13e commit a3ad030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MOCK_MEV_TYPE = "mock"
FULL_MEV_TYPE = "full"
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)

num_participants = len(args_with_right_defaults.participants)
Expand Down

0 comments on commit a3ad030

Please sign in to comment.