Skip to content

Commit c1e3189

Browse files
committed
revert removal of token_network_registry_address cause it's needed
1 parent 02d6878 commit c1e3189

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

raiden/network/rpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ def get_block(self, block_identifier: BlockIdentifier) -> BlockData:
10781078
"""Given a block number, query the chain to get its corresponding block hash"""
10791079
return self.web3.eth.getBlock(block_identifier)
10801080

1081-
def sync_nonce(self) -> None:
1081+
def _sync_nonce(self) -> None:
10821082
self._available_nonce = discover_next_available_nonce(
10831083
self.web3, self.eth_node, self.address
10841084
)

raiden/tests/utils/smoketest.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@
8989
CONTRACT_SERVICE_REGISTRY,
9090
CONTRACT_TOKEN_NETWORK_REGISTRY,
9191
CONTRACT_USER_DEPOSIT,
92-
LIBRARY_TOKEN_NETWORK_UTILS,
93-
LIBRARY_TOKEN_NETWORK_UTILS_LINK_KEY,
9492
TEST_SETTLE_TIMEOUT_MAX,
9593
TEST_SETTLE_TIMEOUT_MIN,
9694
)
@@ -118,10 +116,8 @@ def __call__(self, description: str, error: bool = False) -> None:
118116
...
119117

120118

121-
def _deploy_contract(
122-
deployer: ContractDeployer, name: str, args: list, libs: dict = None
123-
) -> Address:
124-
receipt = deployer.deploy(name, libs=libs, args=args)
119+
def _deploy_contract(deployer: ContractDeployer, name: str, args: list) -> Address:
120+
receipt = deployer.deploy(name, args=args)
125121
address = receipt["contractAddress"]
126122
assert address is not None, "must be a valid address"
127123
return to_canonical_address(address)
@@ -167,6 +163,8 @@ def deploy_smoketest_contracts(
167163
constructor_parameters=secret_registry_constructor_arguments,
168164
)
169165

166+
token_network_registry_address = Address(to_canonical_address(contract_proxy.address))
167+
170168
service_registry_address = _deploy_contract(
171169
deployer,
172170
CONTRACT_SERVICE_REGISTRY,
@@ -204,7 +202,7 @@ def deploy_smoketest_contracts(
204202
# Since the contracts have been deployed without the use of our
205203
# JSONRPCClient, we need to sync the client's internal nonce so that
206204
# it reflects the fact that we just sent 7 transactions.
207-
client.sync_nonce()
205+
client._sync_nonce()
208206

209207
proxy_manager = ProxyManager(
210208
rpc_client=client,

0 commit comments

Comments
 (0)