Skip to content

Lesson14, NftRequested event is not emmited? Getting TypeError from reading the indexed value, Cannot read properties of undefined (reading 'requestId') #6336

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

You must be logged in to vote

for who is encouting the same problem i had, you should replace randomIpfsNftMintTxReceipt.logs[0].args.requestId.toString();
to randomIpfsNftMintTxReceipt.logs[1].args.requestId;
Because it will be the second event after requestRandomWords, because requestRandomWords will emit a event too.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BOBSTRONK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant