Skip to content

Commit

Permalink
Add fee model contract address to initiate_ritual method parameters.
Browse files Browse the repository at this point in the history
Linter cleanup.
  • Loading branch information
derekpierre authored and KPrasch committed Aug 5, 2024
1 parent 31364a8 commit 20f4ff8
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions scripts/initiate_ritual.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@
type=int,
required=True,
)
@click.option(
"--random-seed",
help="Random seed integer for sampling.",
required=False,
type=int
)
@click.option("--random-seed", help="Random seed integer for sampling.", required=False, type=int)
def cli(domain, duration, network, account, access_controller, fee_model, num_nodes, random_seed):
check_plugins()
print(f"Using network: {network}")
Expand All @@ -76,16 +71,17 @@ def cli(domain, duration, network, account, access_controller, fee_model, num_no
authority = transactor.get_account().address

while True:

providers = sample_nodes(
domain=domain,
num_nodes=num_nodes,
duration=duration,
random_seed=random_seed
domain=domain, num_nodes=num_nodes, duration=duration, random_seed=random_seed
)

transactor.transact(
coordinator.initiateRitual, providers, authority, duration, access_controller.address
coordinator.initiateRitual,
fee_model.address,
providers,
authority,
duration,
access_controller.address,
)
if not input("Another? [y/n] ").lower().startswith("y"):
break
Expand Down

0 comments on commit 20f4ff8

Please sign in to comment.