mirror of https://github.com/embarklabs/embark.git
Display warning for gas price
This commit is contained in:
parent
83e79f7b3f
commit
2a61857990
|
@ -188,6 +188,7 @@ class Test {
|
|||
}
|
||||
return self.connectToIpcNode(cb);
|
||||
}
|
||||
self.showNodeHttpWarning();
|
||||
cb();
|
||||
}
|
||||
], callback);
|
||||
|
@ -200,10 +201,17 @@ class Test {
|
|||
return cb();
|
||||
}
|
||||
this.options.node = node;
|
||||
this.showNodeHttpWarning();
|
||||
cb();
|
||||
});
|
||||
}
|
||||
|
||||
showNodeHttpWarning() {
|
||||
if (this.options.node.startsWith('http')) {
|
||||
this.engine.logger.warn("You are using http to connect to the node, as a result the gas details won't be correct");
|
||||
}
|
||||
}
|
||||
|
||||
onReady(callback) {
|
||||
const self = this;
|
||||
if (this.ready) {
|
||||
|
|
Loading…
Reference in New Issue