Open andy-thomason opened 1 year ago
hmm this should serialize as string, right?
mind checking the erigon code if that differs and if {}
is just null?
because the error in structlog is supposed to be a string: https://geth.ethereum.org/docs/developers/evm-tracing/built-in-tracers
I have no doubt that it is an Erigon bug. I'll take a look at the source code.
The example I gave contained an out of gas error (following a divergence reproducing the DAO fork).
Version 2.0.0
Platform Linux sc-devbox-01 5.13.0-52-generic #59~20.04.1-Ubuntu SMP Thu Jun 16 21:21:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
Erigon StructLog has error as an Object, not a string.
I would suggest substituting a Value for string:
https://github.com/gakonst/ethers-rs/blob/master/ethers-core/src/types/trace/geth.rs#L37
s/String/Value/
Test data: