hardhat-tracer icon indicating copy to clipboard operation
hardhat-tracer copied to clipboard

Running hardhat trace --hash on arbitrum nova fails "block has a different hardfork than the vm"

Open kasumi-1 opened this issue 1 year ago • 1 comments

I believe the fix is to add skipHardForkValidation: true, to the following two lines:

https://github.com/zemse/hardhat-tracer/blob/21c2b2d1f26c2e63ebe526bb26d7bbc1ca252007/src/tasks/trace.ts#L245

https://github.com/zemse/hardhat-tracer/blob/21c2b2d1f26c2e63ebe526bb26d7bbc1ca252007/src/tasks/trace.ts#L248

It looks like hardhat also skips this validation in some spots, but I am unfamiliar enough with codebase to not know if this could cause issues without some other check in place. The above change worked for me locally.

kasumi-1 avatar May 16 '23 03:05 kasumi-1

Thanks for reporting, I've added the fix and published in 2.3.1. Do let me know if there are any issues with it.

zemse avatar May 19 '23 17:05 zemse