Skip to content

Conversation

rnkrtt
Copy link

@rnkrtt rnkrtt commented Jun 18, 2025

I noticed that while working with the EvenNumber contract, there was no way to track changes to the stored number without constantly polling the contract. This PR adds proper event emission when the number changes, making it much easier to build reactive UIs and track contract activity.

Changes:

  • Explicitly implemented the IEvenNumber interface for better type safety
  • Added a NumberUpdated event that tracks both old and new values
  • Added comprehensive test coverage for the event emission

@rnkrtt rnkrtt requested a review from BoomchainLabs July 14, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants