mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
fix the indexOf instead by simulating what solc does
This commit is contained in:
parent
6611e899bb
commit
23803f3038
@ -209,9 +209,6 @@ class ContractDeployer {
|
||||
if (linkReference.length > 40) {
|
||||
return next(new Error(__("{{linkReference}} is too long, try reducing the path of the contract ({{filename}}) and/or its name {{contractName}}", {linkReference: linkReference, filename: filename, contractName: contractObj.className})));
|
||||
}
|
||||
if (contractCode.indexOf(linkReference) < 0) {
|
||||
continue;
|
||||
}
|
||||
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
|
||||
if (deployedAddress === undefined) {
|
||||
let libraryName = contractObj.className;
|
||||
|
Loading…
x
Reference in New Issue
Block a user