openchainxyz / ethereum-transaction-viewer-frontend

Frontend for https://tx.eth.samczsun.com/
391 stars 67 forks source link

Guessing the type of parameters in array #19

Closed bulikos closed 1 year ago

bulikos commented 2 years ago

Hello, I found a nice example, where the guessing could be improved by following the most numerous result, instead of the first one. Check the second argument of the tuple, is guessed to be uint256, because first item in the array is using vanity address (TrueUSD) which felt into uint256 bucket (that's reasonable). Looking into other items of the tuple array supposes, that correct guess would be address.

Collecting all of the examples in array could improve the guess.

TX here: https://tx.eth.samczsun.com/ethereum/0x937554a3abc821c2274aa33ce170d9c06ce3b709f42717cc39dc5bd886935c22

Current state:

image

Proposed state:

image