-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Update transfer docs and make ibc prefix a const #7926
Conversation
@@ -25,6 +25,9 @@ const ( | |||
|
|||
// QuerierRoute is the querier route for IBC transfer | |||
QuerierRoute = ModuleName | |||
|
|||
// DenomPrefix is the prefix used for internal SDK coin representation. | |||
DenomPrefix = "ibc" |
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.
should this be a var? I think the difference would be whether we want to allow an application creator to choose their own 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.
yeah, I think it makes sense?
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.
Actually, lets just leave as a const, if it is a var another module could simply change the value of the prefix which we can't allow for safety
Codecov Report
@@ Coverage Diff @@
## master #7926 +/- ##
=======================================
Coverage 54.17% 54.17%
=======================================
Files 612 612
Lines 38999 38999
=======================================
Hits 21129 21129
Misses 15697 15697
Partials 2173 2173 |
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
Description
closes: #7906
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes