Skip to content

Received the result, but failed to decode #3715

Answered by ricmoo
Gelassen asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Gelassen
Comment options

Comment options

You must be logged in to vote
1 reply
@Gelassen
Comment options

Answer selected by Gelassen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants