-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat(gnokey): Print out the transaction hash when maketx executes successfully #2309
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2309 +/- ##
==========================================
- Coverage 55.01% 55.00% -0.01%
==========================================
Files 595 595
Lines 79727 79731 +4
==========================================
Hits 43858 43858
- Misses 32550 32554 +4
Partials 3319 3319
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 the addition 🙏
We just need to change the display encoding, and we should be good to go 🚀
@linhpn99 can you please merge in the master branch? 🙏 |
Can we have at least one unit test not checking that "a string is printed", but actually checking that the hash looks correct? |
for sure, i'm working on it |
However, with the current code structure, it is not possible to write unit tests due to the need to mock certain components (like rpcClient). I think it would be better to create a separate PR to address this issue, which would include the necessary mocking and test cases for the missing functions. wdyt @moul @zivkovicmilos ? |
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.
Looks good now 💯
I've left a small comment where we can additionally print the hash, otherwise we're good to go 🚀
…cessfully (gnolang#2309) Relate to gnolang#2303 <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
Relate to #2303
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description