mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-01-09 12:05:51 +00:00
Merge pull request #23 from embark-framework/gas_fix
don't estimate gas which was overriding caller given gas param
This commit is contained in:
commit
36c2088fd7
@ -50,9 +50,9 @@ let Utils = {
|
|||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
toSend.estimateGas()
|
//toSend.estimateGas()
|
||||||
.then(gasEstimated => {
|
// .then(gasEstimated => {
|
||||||
params.gas = gasEstimated + 1000;
|
//params.gas = gasEstimated + 1000;
|
||||||
return toSend.send(params, function(err, transactionHash) {
|
return toSend.send(params, function(err, transactionHash) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
@ -68,7 +68,7 @@ let Utils = {
|
|||||||
}
|
}
|
||||||
web3.eth.getTransactionReceipt(hash, callback);
|
web3.eth.getTransactionReceipt(hash, callback);
|
||||||
}).catch(callback);
|
}).catch(callback);
|
||||||
});
|
//});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user