Fix warning

This commit is contained in:
Anthony Laibe 2018-09-25 14:59:08 +01:00
parent 527dbcca8b
commit b8d3f3cd11

View File

@ -275,7 +275,7 @@ class ContractDeployer {
if (error) {
contract.error = error.message;
self.events.emit("deploy:contract:error", contract);
if (error.message && error.message.indexOf('replacement transaction underpriced')) {
if (error.message && error.message.indexOf('replacement transaction underpriced') !== -1) {
self.logger.warn("replacement transaction underpriced: This warning typically means a transaction exactly like this one is still pending on the blockchain");
}
return next(new Error("error deploying =" + contract.className + "= due to error: " + error.message));