eth-contract-class
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -36,3 +36,8 @@ 'use strict'; | ||
return method.estimateGas(filterOpts(opts)) | ||
var o = filterOpts(opts); | ||
// remove nonce from estimateGas. It isn't necessary and causes | ||
// ganache-cli to error when submitting multiple txs asynchronously | ||
// before the 1st has been mined | ||
delete o.nonce; | ||
return method.estimateGas(o) | ||
// eslint-disable-next-line no-confusing-arrow | ||
@@ -67,3 +72,3 @@ .then(function (gas) { | ||
estimateGas(web3, txObject, opts).then(function (gas) { | ||
// 21272 is min gas to work in testrpc | ||
// 21272 is min gas to work in older versions of ganache-cli | ||
var filteredOpts = Object.assign({}, filterOpts(opts), { gas: gas < 21272 ? 21272 : gas }); | ||
@@ -70,0 +75,0 @@ return cb ? txObject.send(filteredOpts, cb) : txObject.send(filteredOpts) |
{ | ||
"name": "eth-contract-class", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "generate js wrapper class around an ethereum contract", | ||
@@ -5,0 +5,0 @@ "main": "lib/generateClass.js", |
Sorry, the diff of this file is not supported yet
18439
145