Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 423 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 423 Bytes

hardhat-cover

Either:

await Coverage
    .cover(await Sources.crawl(hre.artifacts))
    .traceReportAndWrite(ethers.provider, [txHash])

or:

const sources = await Sources.crawl(hre.artifacts)
const trace = await Trace.crawl(ethers.provider, txHash)
sources.loadAddresses(trace.addressToBytecodes)

const coverage = Coverage.cover(sources)
const report = coverage.report(trace.logs)