edr icon indicating copy to clipboard operation
edr copied to clipboard

Add extra events needed in hh-tracer

Open fvictorio opened this issue 1 year ago • 0 comments

Besides the beforeMessage, step, and afterMessage events, hardhat-tracer uses the beforeTx, afterTx and newContract events, so we should add them. I think the first two are going to be easy and only need changes in the Hardhat side; the newContract one seems harder.

Definition of done

The following events can be used. As with the events we have now, we don't need to pass the same data as ethereumjs; a partial object with just the fields needed by hh-tracer is enough:

  • vm.events.on("beforeTx", ...)
  • vm.events.on("afterTx", ...)
  • vm.evm.events.on("newContract", ...)

fvictorio avatar Feb 22 '24 08:02 fvictorio