Skip to content

Commit

Permalink
Fix how to call verify_contracts_deployment_data
Browse files Browse the repository at this point in the history
This is a leftover of #896.  Some function signatures changed there
but not all calling sites were updated accordingly.
  • Loading branch information
pirapira authored and rakanalh committed May 6, 2019
1 parent bde97ac commit d612266
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions raiden_contracts/deploy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,14 @@ def raiden(
for contract_name, info in deployed_contracts_info['contracts'].items()
}

deployer.store_and_verify_deployment_info_raiden(
deployed_contracts_info=deployed_contracts_info,
save_info=save_info,
)
if save_info:
deployer.store_and_verify_deployment_info_raiden(
deployed_contracts_info=deployed_contracts_info,
)
else:
deployer.verify_deployment_data(
deployed_contracts_info=deployed_contracts_info,
)

print(json.dumps(deployed_contracts, indent=4))
ctx.obj['deployed_contracts'].update(deployed_contracts)
Expand Down Expand Up @@ -261,12 +265,18 @@ def services(
for contract_name, info in deployed_contracts_info['contracts'].items()
}

deployer.store_and_verify_deployment_info_services(
deployed_contracts_info=deployed_contracts_info,
save_info=save_info,
token_address=token_address,
user_deposit_whole_limit=user_deposit_whole_limit,
)
if save_info:
deployer.store_and_verify_deployment_info_services(
deployed_contracts_info=deployed_contracts_info,
token_address=token_address,
user_deposit_whole_limit=user_deposit_whole_limit,
)
else:
deployer.verify_service_contracts_deployment_data(
deployed_contracts_info=deployed_contracts_info,
token_address=token_address,
user_deposit_whole_limit=user_deposit_whole_limit,
)

print(json.dumps(deployed_contracts, indent=4))
ctx.obj['deployed_contracts'].update(deployed_contracts)
Expand Down

0 comments on commit d612266

Please sign in to comment.