ethdebug / format

Smart contract debugging data format – Standards development working group
https://ethdebug.github.io/format/
44 stars 4 forks source link

Clarification on argument's `position` #29

Closed cameel closed 1 year ago

cameel commented 1 year ago

I'd like some clarification about this passage:

position: The logical position of the argument. The first argument to the function has position 0, the next 1, etc. As with the stack, a single logical argument can be spread across multiple stack slots. If multiple entries share the same position value, then those arguments should have a representation field that has a componentOf entry.

Is "logical position" the order of arguments in the call or is it the order of parameters from the definition? I'm assuming it's not meant to be the order in which they're placed on the stack, because that would always be sequential.

The order in the call can significantly differ from parameter order due to: