Skip to content

Commit 8875b1b

Browse files
committed
trim the contract name to have the warning correctly
1 parent 4467874 commit 8875b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contracts/contract_deployer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class ContractDeployer {
178178
deployedAddress = deployedAddress.substr(2);
179179
}
180180
let linkReference = '__' + filename + ":" + contractObj.className;
181-
if (contractCode.indexOf(linkReference) < 0) {
181+
if (contractCode.indexOf(linkReference.substr(0, 38)) < 0) { // substr to simulate the cut that solc does
182182
continue;
183183
}
184184
if (linkReference.length > 40) {

0 commit comments

Comments
 (0)