mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-12 15:04:29 +00:00
don't attempt to link contract if it's not in the code
This commit is contained in:
parent
4008f15910
commit
8e323d6870
@ -109,6 +109,9 @@ class Deploy {
|
||||
deployedAddress = deployedAddress.substr(2);
|
||||
}
|
||||
let linkReference = '__' + filename + ":" + contractObj.className;
|
||||
if (contractCode.indexOf(linkReference) < 0) {
|
||||
continue;
|
||||
}
|
||||
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
|
||||
contractCode = contractCode.replace(new RegExp(toReplace, "g"), deployedAddress);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user