-
Notifications
You must be signed in to change notification settings - Fork 388
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
refactor: remove useless code and fix a test #3159
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3159 +/- ##
==========================================
+ Coverage 63.79% 63.80% +0.01%
==========================================
Files 549 549
Lines 78833 78824 -9
==========================================
+ Hits 50288 50297 +9
+ Misses 25153 25138 -15
+ Partials 3392 3389 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
3f907eb
to
c34bfd5
Compare
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 💯
- Commit gnolang@4b6219c move `ValidateBlock` method from `blockExec` to `state` since `blockExec.db` was an unused parameter. (simplify + remove misleading comment) - Commit gnolang@4f02bcd just removes useless `Sprintf` found in this package - Commit gnolang@c34bfd5 improves `ValidateBasic` method (adding one more validation test that was marked with a `TODO` comment) - Commit gnolang@df75b32 removes useless case testing the size of a fixed-sized array, see: https://github.com/gnolang/gno/blob/b3800b7dfb864396ac74dc20390e728bc0b2d88e/tm2/pkg/crypto/crypto.go#L24-L30 <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details>
ValidateBlock
method fromblockExec
tostate
sinceblockExec.db
was an unused parameter. (simplify + remove misleading comment)Sprintf
found in this packageValidateBasic
method (adding one more validation test that was marked with aTODO
comment)gno/tm2/pkg/crypto/crypto.go
Lines 24 to 30 in b3800b7
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description