trim the contract name to have the warning correctly

This commit is contained in:
Jonathan Rainville 2018-07-12 12:36:54 -04:00
parent 446787447d
commit 8875b1b7ab
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class ContractDeployer {
deployedAddress = deployedAddress.substr(2); deployedAddress = deployedAddress.substr(2);
} }
let linkReference = '__' + filename + ":" + contractObj.className; 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; continue;
} }
if (linkReference.length > 40) { if (linkReference.length > 40) {