Skip to content

Commit

Permalink
use _deploy_contract also for token_network_registry_address
Browse files Browse the repository at this point in the history
  • Loading branch information
fredo committed Sep 20, 2021
1 parent c1e3189 commit 4a42b3f
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions raiden/tests/utils/smoketest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,17 @@ def deploy_smoketest_contracts(
)
secret_registry_address = _deploy_contract(deployer, CONTRACT_SECRET_REGISTRY, [])

secret_registry_constructor_arguments = (
to_checksum_address(secret_registry_address),
TEST_SETTLE_TIMEOUT_MIN,
TEST_SETTLE_TIMEOUT_MAX,
UINT256_MAX,
)

contract_proxy, _ = client.deploy_single_contract(
contract_name=CONTRACT_TOKEN_NETWORK_REGISTRY,
contract=contract_manager.get_contract(CONTRACT_TOKEN_NETWORK_REGISTRY),
constructor_parameters=secret_registry_constructor_arguments,
token_network_registry_address = _deploy_contract(
deployer,
CONTRACT_TOKEN_NETWORK_REGISTRY,
[
to_checksum_address(secret_registry_address),
TEST_SETTLE_TIMEOUT_MIN,
TEST_SETTLE_TIMEOUT_MAX,
UINT256_MAX,
],
)

token_network_registry_address = Address(to_canonical_address(contract_proxy.address))

service_registry_address = _deploy_contract(
deployer,
CONTRACT_SERVICE_REGISTRY,
Expand Down

0 comments on commit 4a42b3f

Please sign in to comment.