Emitted Event in Anvil test environment #3126
Unanswered
Aashim-Limbu
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hello @Aashim-Limbu, I am unsure how events work on Anvil, but honestly, I will consider that events are not properly stored for querying or listening since Anvil is just a one-time blockchain for quick use so it makes sense that it doesn't properly persist some data or maybe expose it as necessary. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hey folks, I'm working on a personal project and encountered an issue while listening to events on the Anvil chain.
The event is not being emitted when I run the contract on the local Anvil chain. However, when I switch to a test network, I can see the event being triggered and reflected in my frontend as well.
Question
Do events do not get emitted on the local Anvil chain?
Beta Was this translation helpful? Give feedback.
All reactions