hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
117 stars 110 forks source link

Refactor the way contract action index is tracked in `OpcodeTracer` #8639

Open victor-yanev opened 5 days ago

victor-yanev commented 5 days ago

Problem

Currently the way that the contractActionIndexOfCurrentFrame is tracked inside OpcodeTracer is not exactly how it is done in the HederaTracer, where the list of contract actions is built and we are still using the mono code in the web3 module, so we need to refactor this to be identical to what is done in HederaTracer. We need to copy the logic from there and increment the contractActionIndexOfCurrentFrame in the places where items are pushed to the allActions list in HederaTracer.

Solution

Copy the way contract actions are added to the allActions list in HederaTracer

Alternatives

No response