-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add method to get all events emitted by the contract #95
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
Conversation
Hi @isSerge and thanks for the contribution. We are currently under a huge workload, so we will be reviewing the PR as soon as we can. |
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.
Thanks for contributing, very good job. Let's polish this a bit, and it should be ready to merge.
Co-authored-by: Nenad <[email protected]>
…ccumulation order
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.
Excellent work @isSerge 🔥
Left some nits, we can merge after fixing them
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.
Please apply clippy warnings and @0xNeshi comments.
Co-authored-by: Nenad <[email protected]>
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.
🚀
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.
Minor docs improvements.
crates/motsu/src/lib.rs
Outdated
let events_after_two_calls = ping.all_events(); | ||
assert_eq!(events_after_two_calls.len(), 2, "Should be 2 events"); | ||
|
||
// Second call to all_events immediately after |
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.
// Second call to all_events immediately after | |
// Second call to `all_events` immediately after. |
crates/motsu/src/lib.rs
Outdated
"Repeated calls after two events should be consistent" | ||
); | ||
|
||
// Check content of the two events |
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.
// Check content of the two events | |
// Check content of the two events. |
crates/motsu/src/lib.rs
Outdated
"Second event should be correct" | ||
); | ||
|
||
// Perform a read-only operation that doesn't emit events |
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.
// Perform a read-only operation that doesn't emit events | |
// Perform a read-only operation that does not emit events. |
crates/motsu/src/lib.rs
Outdated
// Perform a read-only operation that doesn't emit events | ||
let _pings_count = ping.sender(alice).pings_count.get(); | ||
|
||
// Third call to all_events after a read operation |
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.
// Third call to all_events after a read operation | |
// Third call to `all_events` after a read operation. |
Resolves #55
PR Checklist