This commit is contained in:
Iuri Matias 2018-07-26 12:58:25 -04:00 committed by Pascal Precht
parent 90965f9a63
commit c6f7658dc0
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,6 @@ class Blockchain {
if (this.contractsConfig.deployment.type !== "rpc" && this.contractsConfig.deployment.type !== "ws") {
const message = __("contracts config error: unknown deployment type %s", this.contractsConfig.deployment.type);
this.logger.error(message);
//return cb(message);
}
const protocol = (this.contractsConfig.deployment.type === "rpc") ? this.contractsConfig.deployment.protocol : 'ws';
@ -283,7 +282,10 @@ class Blockchain {
}
getGasPrice(cb) {
this.web3.eth.getGasPrice(cb);
const self = this;
this.onReady(() => {
self.web3.eth.getGasPrice(cb);
});
}
ContractObject(params) {

View File

@ -2,6 +2,7 @@ const async = require('async');
const Viz = require('viz.js');
const fs = require('fs');
// TODO: refactor this class to use the plugin api and not refeneences directly
class GraphGenerator {
constructor(embark, _options) {
const self = this;