trailofbits/manticore

Feature request: Automatic conversion of tx.return_data

Aberta

#1.595 aberto em 23 de jan. de 2020

 (2 comentários) (0 reação) (0 responsável)Python (481 forks)batch import
ethereumhelp wantedidea

Métricas do repositório

Stars
 (3.469 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Currently, to retrieve the return value of a transaction, we need to do

    balance_raw = transaction.return_data
    balance = ABI.deserialize("uint", balance_raw)

It would be nice to have a transaction's property that deserializes automatically the data, given the function's signature.

Guia do colaborador