zemse / hardhat-tracer

🕵️ allows you to see internal calls, events and storage operations in the console
MIT License
341 stars 35 forks source link

How to enable custom opcodes or at least `SLOAD`/`SSTORE` in JS API? #32

Closed k06a closed 1 year ago

k06a commented 1 year ago

I see hre.tracer.recorder.previousTraces contains calls-like traces and do not have SLOAD/SSTORE traces. Is there any option to include them?

k06a commented 1 year ago

@zemse DM'ed how to resolve this issue by adding the following lines into hardhat.config.js:

tracer: {
    opcodes: ["SLOAD", "SSTORE"],
},