Commit d3d310fe authored by Alex Beregszaszi's avatar Alex Beregszaszi

Include a gas limit for web3 constant calls

Missed this in #124
parent bb92e7a1
...@@ -645,6 +645,7 @@ UniversalDApp.prototype.runTx = function (data, args, cb) { ...@@ -645,6 +645,7 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
value: value value: value
}; };
if (constant && !isConstructor) { if (constant && !isConstructor) {
tx.gas = gasLimit;
self.web3.eth.call(tx, cb); self.web3.eth.call(tx, cb);
} else { } else {
self.web3.eth.estimateGas(tx, function (err, resp) { self.web3.eth.estimateGas(tx, function (err, resp) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment