From 38e7d38d6230dd5e526e5b61b154e47c392e495d Mon Sep 17 00:00:00 2001 From: derekpierre Date: Fri, 2 Aug 2024 11:11:45 -0400 Subject: [PATCH] Add fee model contract address to initiate_ritual method parameters. Linter cleanup. --- scripts/initiate_ritual.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/scripts/initiate_ritual.py b/scripts/initiate_ritual.py index 32d74e22..8639a2f9 100644 --- a/scripts/initiate_ritual.py +++ b/scripts/initiate_ritual.py @@ -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}") @@ -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