Include a gas limit for web3 constant calls

Missed this in #124
pull/1/head
Alex Beregszaszi 8 years ago
parent bb92e7a103
commit d3d310fe2a
  1. 1
      src/universal-dapp.js

@ -645,6 +645,7 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
value: value
};
if (constant && !isConstructor) {
tx.gas = gasLimit;
self.web3.eth.call(tx, cb);
} else {
self.web3.eth.estimateGas(tx, function (err, resp) {

Loading…
Cancel
Save