Closed Rubilmax closed 2 weeks ago
I can't reproduce this. @Rubilmax could you please create and share a minimal reproducible example?
Sorry, update the description because I mixed up addresses.
Here is a reproducible example: https://github.com/Rubilmax/edr-setStorageAt-issue
Configure a rpc URL in the environment variable and run yarn test
Quick notes:
Thanks a lot @Rubilmax, that's a great repro. Confirmed that this is happening and important.
Some more info for ourselves:
eth_getCode
call with that address before the calls makes the problem go away.Thanks a lot for the hot fix, will do this while a proper fix is published to the EDR
Minimal reproducible example
Using hardhat 2.22.5 (EDR ^0.4.0), the following code rejects with "Contract with code hash
0xaee43571f51ad4922c41ab126fb98a76934d579c76f54b9e393ade09aad21646
does not exist.":While the following one does not:
In other words, inverting the order of requests
eth_getStorageAt
andhardhat_setStorageAt
changes the behavior of the EDR, while it should not (both should not reject)