-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: update swap keys for possibly overlapped keys #1365
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1365 +/- ##
==========================================
- Coverage 69.53% 69.53% -0.01%
==========================================
Files 672 672
Lines 56111 56128 +17
==========================================
+ Hits 39019 39027 +8
- Misses 14827 14835 +8
- Partials 2265 2266 +1
|
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.
We should prohibit denoms longer than 255.
Can i have any reason for 255 limit? |
It's because our newly introduced lengthPrefix() assumes it (converts length to byte). |
Thanks for letting me know. I found regex for denom validation |
I got another case to call without |
e4def6a
to
0b9cc3c
Compare
* fix: update swap keys for possibly overlapped keys * chore: lint fix * chore: update changelog * chore: use address.LengthPrefix to check length * Revert "chore: use address.LengthPrefix to check length" This reverts commit b33165b. * chore: add denom validation for string type denom (cherry picked from commit e31eb43)
* fix: update swap keys for possibly overlapped keys * chore: lint fix * chore: update changelog * chore: use address.LengthPrefix to check length * Revert "chore: use address.LengthPrefix to check length" This reverts commit b33165b. * chore: add denom validation for string type denom (cherry picked from commit e31eb43) Co-authored-by: jaeseung-bae <[email protected]>
Description
(hello, world)
!=(hell, oworld)
Motivation and context
How has this been tested?
Screenshots (if appropriate):
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml