-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat(auction) msgs interfaces and validation #2475
Changes from all commits
1ad5bbc
14b6009
972ddbd
bb1634c
e249de4
19ea1b9
e70b79a
8b8158f
3f5d854
aceead9
31998a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,12 @@ | |
|
||
//revive:enable:var-naming | ||
|
||
// UmeeCoins creates an Umee (uumee) sdk.Coins with given amount | ||
// Umee creates a BondDenom sdk.Coin with the given amount | ||
func Umee(amount int64) sdk.Coin { | ||
return sdk.NewInt64Coin(umee, amount) | ||
} | ||
|
||
// UmeeCoins creates an Umee (uumee) sdk.Coins with the given amount | ||
func UmeeCoins(amount int64) sdk.Coins { | ||
return sdk.NewCoins(sdk.NewInt64Coin(umee, amount)) | ||
Comment on lines
+49
to
51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Consider adding unit tests for the |
||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The
Umee
function correctly creates asdk.Coin
with theumee
denomination. However, it's important to ensure that new functions are covered by tests to verify their correctness and behavior under various conditions.Consider adding unit tests for the
Umee
function to cover different amounts, including edge cases.