edr icon indicating copy to clipboard operation
edr copied to clipboard

Calling RIP-7212 precompile prints "Calling an account which is not a contract" warning

Open fvictorio opened this issue 7 months ago • 0 comments

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.

fvictorio avatar Jul 18 '24 07:07 fvictorio