Skip to content

Commit 8b891c5

Browse files
committed
replace all instances of matched lib
1 parent acee934 commit 8b891c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contracts/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Deploy {
115115
}
116116
let linkReference = '__' + filename + ":" + contractObj.className;
117117
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
118-
contractCode = contractCode.replace(toReplace, deployedAddress);
118+
contractCode = contractCode.replace(new RegExp(toReplace, "g"), deployedAddress);
119119
}
120120

121121
// TODO: probably needs to be defaultAccount

0 commit comments

Comments
 (0)