Merge pull request #132 from ethereum/fix-call-gas

Include a gas limit for web3 constant calls
pull/1/head
chriseth 8 years ago committed by GitHub
commit 5e367b5406
  1. 1
      src/universal-dapp.js

@ -657,6 +657,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