-
Notifications
You must be signed in to change notification settings - Fork 103
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(x/ecocredit): fix core message validation and update tests #1233
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1233 +/- ##
==========================================
+ Coverage 79.65% 79.76% +0.11%
==========================================
Files 230 231 +1
Lines 21444 21476 +32
==========================================
+ Hits 17081 17131 +50
- Misses 3007 3008 +1
+ Partials 1356 1337 -19
Flags with carried forward coverage won't be shown. Click here to find out more.
|
* fix(x/ecocredit): bridge and bridge receive message validation * add and update tests * add ethereum contract scenario * use sdkerros wrap not fmt * use steps for field length checks * use custom regen prefix
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.
lgtm
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.
LGTM - nit: some other areas similar to the review comment below- might be nice to add the empty check in the Validate<Field>
functions
if m.Jurisdiction == "" { | ||
return sdkerrors.ErrInvalidRequest.Wrap("jurisdiction cannot be empty") |
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.
maybe this is something we can catch in ValidateJurisdiction
? ok either way or perhaps a followup PR
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.
Yea, I was thinking the same thing but I think a followup would be better. Opened #1245.
Description
Ref: #893
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change