replace all instances of matched lib
This commit is contained in:
parent
acee934467
commit
8b891c5f0c
|
@ -115,7 +115,7 @@ class Deploy {
|
||||||
}
|
}
|
||||||
let linkReference = '__' + filename + ":" + contractObj.className;
|
let linkReference = '__' + filename + ":" + contractObj.className;
|
||||||
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
|
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
|
||||||
contractCode = contractCode.replace(toReplace, deployedAddress);
|
contractCode = contractCode.replace(new RegExp(toReplace, "g"), deployedAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: probably needs to be defaultAccount
|
// TODO: probably needs to be defaultAccount
|
||||||
|
|
Loading…
Reference in New Issue