diff --git a/raiden_contracts/deploy/contract_verifier.py b/raiden_contracts/deploy/contract_verifier.py index e8cb657ee..bb9ddcfec 100644 --- a/raiden_contracts/deploy/contract_verifier.py +++ b/raiden_contracts/deploy/contract_verifier.py @@ -203,7 +203,10 @@ def _verify_deployed_contract( blockchain_bytecode = self.web3.eth.get_code(contract_instance.address).hex() compiled_bytecode = self.contract_manager.get_runtime_hexcode(contract_name) - if contract_name == CONTRACT_TOKEN_NETWORK_REGISTRY: + if ( + contract_name == CONTRACT_TOKEN_NETWORK_REGISTRY + and LIBRARY_TOKEN_NETWORK_UTILS in contracts + ): # We need to link the libs into the contract bytecode. # As this is run in the tests in fake file systems, do poor mans linking here compiled_bytecode = link_bytecode(