Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-gas-reporter

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-gas-reporter - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

7

CHANGELOG.md
## Changelog: eth-gas-reporter
0.0.12 / 2017-10-28
===================
* Add config. Add gasPrice and currency code options
* Improve table clarity
* Derive block.gasLimit from rpc
0.0.11 / 2017-10-23

@@ -4,0 +11,0 @@ ==================

9

index.js

@@ -39,4 +39,11 @@ const mocha = require('mocha')

const id = stats.getMethodID(transaction.input)
const threw = receipt.gasUsed === transaction.gas // Change this @ Byzantium
// Pre/Post byzantium error filtering
let threw = false
if (receipt.status === 0){
threw = true
} else {
threw = receipt.gasUsed === transaction.gas
}
if (methodMap[id] && !threw) {

@@ -43,0 +50,0 @@ methodMap[id].gasData.push(receipt.gasUsed)

6

mock/package.json
{
"name": "eth-gas-reporter",
"version": "0.0.11",
"version": "0.0.12",
"description": "Mocha reporter which shows gas used per unit test.",

@@ -37,5 +37,5 @@ "main": "index.js",

"devDependencies": {
"ethereumjs-testrpc": "^4.1.3",
"truffle": "^4.0.0-beta.2"
"ethereumjs-testrpc": "6.0.2",
"truffle": "4.0.0-beta.2"
}
}
{
"name": "eth-gas-reporter",
"version": "0.0.12",
"version": "0.0.13",
"description": "Mocha reporter which shows gas used per unit test.",

@@ -37,5 +37,5 @@ "main": "index.js",

"devDependencies": {
"ethereumjs-testrpc": "^4.1.3",
"truffle": "^4.0.0-beta.2"
"ethereumjs-testrpc": "6.0.2",
"truffle": "4.0.0-beta.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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