From 8875b1b7abcf090d5329df818e83bd305220ba28 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 12 Jul 2018 12:36:54 -0400 Subject: [PATCH] trim the contract name to have the warning correctly --- lib/contracts/contract_deployer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contracts/contract_deployer.js b/lib/contracts/contract_deployer.js index 3385d642..5a03a857 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) {