Fantom-foundation / Sonic

go-opera fork for Carmen and Tosca integration
GNU Lesser General Public License v3.0
16 stars 16 forks source link

Add tx tracing tests #114

Closed jenikd closed 5 months ago

jenikd commented 5 months ago

Adding tests for tx tracing logger These tests are checking correct information in the transaction traces according to schema: https://docs.rs/web3/latest/web3/types/struct.TransactionTrace.html Tests are simulating EVM callbacks to the tracer to generate json response, so real EVM proccessing is not included in these tests.

Fixed gasUsed value for root call, as it took value from transaction object, which is holding gasLimit value. That differs from the value, which transaction used. Now value from transaction receipt is taken so both values are in final trace action object. Gas limit as gas Gas used from receipt as gasUsed in result

Changed error presentation in the trace with translating into Parity error messages.