Skip to content

Lesson 14: "NftMinted" event not thrown in the unit tests. #1211

Answered by RoboCrypter
Rishi860 asked this question in Q&A
Discussion options

You must be logged in to vote

@Rishi860 : I have debugged your code, and have made PRs in your repo, You can merge them.

  1. Fixed your callbackGasLimit in your localhost to an optimal limit, In your helper-hardhat-config.js

  2. Fixed some mistakes in randomIpfs.test.js file,

    • Removed testing the isInitialized from the constructor test, because isInitialized function is not present in your contract.
    • Fixed error message of revert statement according to your contract.

It will work just fine now!

Yest, that's it! I had exactly the same problem like Rishi860 and as You advised I increased callbackGasLimit 500,000 (was 10x to low im my case - i forgot one "0"). Thanks a lot!

@Rishi860 : Kindly close this discussion as a…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@DEFIdaniel1
Comment options

@Rishi860
Comment options

@RoboCrypter
Comment options

@dariuszsetlak89
Comment options

@RoboCrypter
Comment options

Comment options

You must be logged in to vote
3 replies
@Rishi860
Comment options

@krakxn
Comment options

@Rishi860
Comment options

Comment options

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

Comment options

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