graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

Access raw calldata in call handler

Open dorothy-zbornak opened this issue 4 years ago • 2 comments

We have a bit of an unusual use case at 0x where we append metadata to the end of certain calldata, which we extract later in traces for data tracking. It would be pretty useful to us if the raw calldata (not re-encoded) could be accessed from a Call object in a call handler. Is such a thing possible?

dorothy-zbornak avatar May 27 '21 07:05 dorothy-zbornak

We currently expose the raw input to the transaction, but not to each call.

leoyvens avatar May 27 '21 12:05 leoyvens

That's good to know, thanks. Unfortunately our calldata often gets executed in deeper frames by other contracts so we still need to figure out how to account for those scenarios.

dorothy-zbornak avatar May 27 '21 15:05 dorothy-zbornak