Commit 5e367b54 authored by chriseth's avatar chriseth Committed by GitHub

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

Include a gas limit for web3 constant calls
parents 580a7d8d d3d310fe
......@@ -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) {
......
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