mirror of https://github.com/embarklabs/embark.git
Merge pull request #627 from embark-framework/bug_fix/warning-contract-path
trim the contract name to have the warning correctly (patch)
This commit is contained in:
commit
a01e600857
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue