-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(p/grc721): Distinct Event Types for GRC721 Functions #3102
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3102 +/- ##
==========================================
- Coverage 63.77% 63.77% -0.01%
==========================================
Files 548 548
Lines 78681 78681
==========================================
- Hits 50180 50177 -3
- Misses 25117 25122 +5
+ Partials 3384 3382 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding event emits to the contract. Looks good 💯
Can you add a test, even just a txtar
so we can catch them being emitted? 🙏
txtar for all 5 events |
The EIP states 3 event types, none of which are Mint/Burn events; these are all transfer events. Why did you choose this approach? I have a vague memory we talked about this in the GRC20 package as well; |
@leohhhn I'm aware of EIP 3 event types, and do remember discussion we talked about GRC20. And Yes, as you said IMHO, distinct event name sounds more straightforward. |
Sounds good! I remember. Do you think it would be good to emit the Transfer event as well, to follow the standard? Or should we deviate? I'm okay doing either if this makes it easier for off-chain services. |
For now, I prefer not to(for 2 reasons).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note; we'll need to refactor these tests eventually so we test for the events emitted inside a _test.gno, but it kind of depends on the discussions in #1475
Description
Current event(emit) code in p/grc721 really doesn't emits event.
Therefore, modified code to emit the events.
And similar to #2749, made event type for each function to be unique.
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description