edr
edr copied to clipboard
Calling RIP-7212 precompile prints "Calling an account which is not a contract" warning
If enable_rip_7212
is true and you make a call to the 0x100
address where the precompile is, you get "WARNING: Calling an account which is not a contract" printed in the output.
The reason, I think, is this:
https://github.com/NomicFoundation/edr/blob/c988831664068e30ded2c29db1fbb54c2330f6de/crates/edr_napi/src/logger.rs#L813-L816
I guess we should abstract the "is this a precompile" check somewhere, and use both the spec id and the config to determine this. Or maybe there's a better way to do it.