diff --git a/lib/contracts/contract_deployer.js b/lib/contracts/contract_deployer.js index b3b46f05f..71cd69005 100644 --- a/lib/contracts/contract_deployer.js +++ b/lib/contracts/contract_deployer.js @@ -178,7 +178,7 @@ class ContractDeployer { deployedAddress = deployedAddress.substr(2); } let linkReference = '__' + filename + ":" + contractObj.className; - if (contractCode.indexOf(linkReference) < 0) { + if (contractCode.indexOf(linkReference.substr(0, 38)) < 0) { // substr to simulate the cut that solc does continue; } if (linkReference.length > 40) {