New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eth-contract-class

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-contract-class - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

9

lib/generateClass.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc