Skip to content

Commit 4a42b3f

Browse files
committed
use _deploy_contract also for token_network_registry_address
1 parent c1e3189 commit 4a42b3f

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

raiden/tests/utils/smoketest.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,17 @@ def deploy_smoketest_contracts(
150150
)
151151
secret_registry_address = _deploy_contract(deployer, CONTRACT_SECRET_REGISTRY, [])
152152

153-
secret_registry_constructor_arguments = (
154-
to_checksum_address(secret_registry_address),
155-
TEST_SETTLE_TIMEOUT_MIN,
156-
TEST_SETTLE_TIMEOUT_MAX,
157-
UINT256_MAX,
158-
)
159-
160-
contract_proxy, _ = client.deploy_single_contract(
161-
contract_name=CONTRACT_TOKEN_NETWORK_REGISTRY,
162-
contract=contract_manager.get_contract(CONTRACT_TOKEN_NETWORK_REGISTRY),
163-
constructor_parameters=secret_registry_constructor_arguments,
153+
token_network_registry_address = _deploy_contract(
154+
deployer,
155+
CONTRACT_TOKEN_NETWORK_REGISTRY,
156+
[
157+
to_checksum_address(secret_registry_address),
158+
TEST_SETTLE_TIMEOUT_MIN,
159+
TEST_SETTLE_TIMEOUT_MAX,
160+
UINT256_MAX,
161+
],
164162
)
165163

166-
token_network_registry_address = Address(to_canonical_address(contract_proxy.address))
167-
168164
service_registry_address = _deploy_contract(
169165
deployer,
170166
CONTRACT_SERVICE_REGISTRY,

0 commit comments

Comments
 (0)