-
Notifications
You must be signed in to change notification settings - Fork 882
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
Rama/ibc #107
Conversation
Codecov Report
@@ Coverage Diff @@
## main #107 +/- ##
==========================================
- Coverage 74.47% 74.27% -0.21%
==========================================
Files 22 23 +1
Lines 1610 1648 +38
==========================================
+ Hits 1199 1224 +25
- Misses 354 365 +11
- Partials 57 59 +2
|
go.mod
Outdated
@@ -5,6 +5,7 @@ go 1.17 | |||
require ( | |||
contrib.go.opencensus.io/exporter/prometheus v0.4.0 | |||
github.com/cosmos/cosmos-sdk v0.44.3 | |||
github.com/cosmos/ibc-go v1.2.3 |
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 can remove this since we are using v2
@@ -69,6 +70,10 @@ func (rtbp *RegisterCoinProposal) ValidateBasic() error { | |||
return err | |||
} | |||
|
|||
if err := ibctransfertypes.ValidateIBCDenom(rtbp.Metadata.Base); err != nil { |
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.
nice, we should also check that the metadata has the correct format
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.
following up on this, we should check that the format for IBC vouchers is the same as the one you wrote on the tests
go.sum
Outdated
github.com/cosmos/ibc-go v1.2.3 h1:+Xdhshvls9c6NQNAj7jz5YUtpqCd7AwadEImpaeVReo= | ||
github.com/cosmos/ibc-go v1.2.3/go.mod h1:TNJMo+fPU4GmpAGxqedjuA1l6izRLGPvuIRLpWAbXuE= |
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.
run go mod tidy
@@ -69,6 +70,10 @@ func (rtbp *RegisterCoinProposal) ValidateBasic() error { | |||
return err | |||
} | |||
|
|||
if err := ibctransfertypes.ValidateIBCDenom(rtbp.Metadata.Base); err != nil { |
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.
following up on this, we should check that the format for IBC vouchers is the same as the one you wrote on the tests
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.
ACK! can you fix the linter and add a Changelog entry on Improvement?
Closes: #XXX
Description
Add validate ibc-denom to support ibc
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)