Post check of emitted events #4618
Unanswered
vladikopl01
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Guys, If there a way to check somehow what events were emitted after the function call?
I know that I could use
hardhat-chai-mather
with.to.emit()
check for the emitted event, but I have a smart contract function that receives an array of addresses and mint ERC721 token for each address, so I want to check for eachMint
event which was emitted. Is there a way to do it properly? Because I think writing 10.to.emit()
checks is little bit overwhelmingHere is my test suite:
Beta Was this translation helpful? Give feedback.
All reactions