mev-inspect-py
mev-inspect-py copied to clipboard
Failure to decode variable bytes swap
This transaction https://etherscan.io/tx/0x57e8b6fa4c7ae3d8fb2ce274a19dbc54579208ac91ee9be12162f6d4e3d9e9a1
includes a swap with the UniV3 SHOPX pool (0xe4b82df044511a7162bea1f11119f6d1283a43a8
) at trace address 14
Action [68] of this transaction https://etherscan.io/vmtrace?txhash=0x57e8b6fa4c7ae3d8fb2ce274a19dbc54579208ac91ee9be12162f6d4e3d9e9a1&type=parity
mev-inspect fails to decode this swap with the error
*** eth_abi.exceptions.InsufficientDataBytes: Tried to read 128 bytes. Only got 118 bytes
which is caught by the trace classifier and ignored
the last field "bytes" is variable length, but eth_abi seems to be limiting it to multiples of 32 causing this issue
The data itself is
0x128acb08000000000000000000000000e33cb50a2090211ae988231ba0fbab9eb6d5ea700000000000000000000000000000000000000000000000000000000000000001fffffffffffffffffffffffffffffffffffffffffffffffffa9a37f95481078000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000761200d3017bef710a5759d197ec0bf621c3df802c2d60d8480000000000000000054764e1ec3df9800200000000000407ac34a030f58000001035487ca79068f6617ae75ed3c844ce2d8a0c2a00000011000000000000000565c806ab7ef880e4b82df044511a7162bea1f11119f6d1283a43a80f0bb8