solidity-coverage
Advanced tools
Comparing version 0.8.8 to 0.8.9-rc.0
# Changelog | ||
0.8.8 / 2024-02-21 | ||
================== | ||
* Coerce sources path to absolute path if necessary (https://github.com/sc-forks/solidity-coverage/issues/866) | ||
* Only inject file-level instr. for first pragma in file (https://github.com/sc-forks/solidity-coverage/issues/865) | ||
0.8.7 / 2024-02-09 | ||
@@ -4,0 +9,0 @@ ================== |
@@ -31,2 +31,4 @@ /** | ||
this.viaIR = viaIR; | ||
this.pcZeroCounter = 0; | ||
this.lastPcZeroCount = 0; | ||
} | ||
@@ -40,2 +42,4 @@ | ||
step(info){ | ||
if (info.pc === 0) this.pcZeroCounter++; | ||
try { | ||
@@ -45,3 +49,3 @@ if (this.validOpcodes[info.opcode.name] && info.stack.length > 0){ | ||
let hash = '0x' + info.stack[idx].toString(16); | ||
this._registerHash(hash) | ||
this._registerHash(hash); | ||
} | ||
@@ -72,4 +76,6 @@ } catch (err) { /*Ignore*/ }; | ||
// abi.encode (used to circumvent viaIR) sometimes puts the hash on the stack twice | ||
if (this.lastHash !== hash) { | ||
// We should only skip duplicate hashes *within* a transaction (see issue #863) | ||
if (this.lastHash !== hash || this.lastPcZeroCount !== this.pcZeroCounter) { | ||
this.lastHash = hash; | ||
this.lastPcZeroCount = this.pcZeroCounter; | ||
this.instrumentationData[hash].hits++ | ||
@@ -76,0 +82,0 @@ } |
{ | ||
"name": "solidity-coverage", | ||
"version": "0.8.8", | ||
"version": "0.8.9-rc.0", | ||
"description": "Code coverage for Solidity testing", | ||
@@ -5,0 +5,0 @@ "main": "plugins/nomiclabs.plugin.js", |
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
142282
32
2912