Skip to content

Lesson 9: TypeError: Cannot read properties of undefined (reading '1') #6057

Answered by TucanCrypto
TucanCrypto asked this question in Q&A
Discussion options

You must be logged in to vote

I solve it, I change this line:

                  const requestId = txReceipt.events[1].args.requestId

for this one

                  const requestId = txReceipt.logs[1].args.requestId

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@TucanCrypto
Comment options

@DylanMaas
Comment options

@TucanCrypto
Comment options

@DylanMaas
Comment options

Comment options

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

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