This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Missing head in abi encoded tuple for function #176
Comments
What is the expected value of |
|
abdulowork
added a commit
to abdulowork/Web3Swift-1
that referenced
this issue
Feb 14, 2019
…dParameter to resolve incorrect tuple encoding
abdulowork
added a commit
to abdulowork/Web3Swift-1
that referenced
this issue
Feb 14, 2019
abdulowork
added a commit
to abdulowork/Web3Swift-1
that referenced
this issue
Feb 14, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
An offset of the data needed to be encoded into tuple is missing for contract call functions.
Example:
If a tuple is used as the first argument of function, then there should be 32 (0000000000000000000000000000000000000000000000000000000000000020) put between signature and encoded structure.
How to reproduce:
Call
getOrderInfo((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes)
function on the 0x exchange contract with the next set of parameters:More information could be found here — https://medium.com/b2expand/abi-encoding-explanation-4f470927092d
The text was updated successfully, but these errors were encountered: