-
Hello, I have been working on the one function call which returns an Encoded data is:
which represents an array with single struct
Environment: "ethers": "^5.7.2" This morning I got the similar error when used Thank you in advance with your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes. Arrays and tuples are fully supported. Can you include the error? |
Beta Was this translation helpful? Give feedback.
-
Oh. You cannot use In v6.1 there will be an ABI type for structure to make this easier. Let me know if that works. |
Beta Was this translation helpful? Give feedback.
Oh. You cannot use
Match[]
as your return type. There is no way from the ABI to know what a “Match” is. You need to specify the tuple format:function getMatches(address, address) view returns ((address,uint,address,uint,bool,bool)[])
.In v6.1 there will be an ABI type for structure to make this easier.
Let me know if that works.