Skip to content

Indexer fetches only one of the two sequential events #1410

Answered by ra0x3
chlenc asked this question in Q&A
Discussion options

You must be logged in to vote

@chlenc

  • Ok I think I have a resolution, thanks for the patience
  • You are trying to receive two TestEvent events from one contract call to the same contract method
  • However, the Fuel indexer only allows for one single item to be dispatched from the decoder at a time
    • That code is here
    • This is very much by design, because the indexer does not support Vec types (and two TestEvents would have to be contained inside of some struct (e.g., Vec))
  • As a workaround - you'd have to make two distinct calls to your contract method :)

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ra0x3
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
Converted from issue

This discussion was converted from issue #1401 on October 11, 2023 19:09.