eth-gas-reporter
Advanced tools
Comparing version 0.0.12 to 0.0.13
## 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 @@ ================== |
@@ -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) |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33836
598