Skip to content

Commit

Permalink
update coin fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Mar 28, 2024
1 parent aceead9 commit 31998a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions util/coin/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const umee = appparams.BondDenom
//
//revive:disable:var-naming
var (
UmeeDenom = umee
// the uToken denom "u/uumee"
U_umee = ToUTokenDenom(umee) //nolint:stylecheck
// 1uumee Coin
Expand Down Expand Up @@ -42,7 +41,12 @@ var (

//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)

Check warning on line 46 in util/coin/fixtures.go

View check run for this annotation

Codecov / codecov/patch

util/coin/fixtures.go#L45-L46

Added lines #L45 - L46 were not covered by tests
}

// UmeeCoins creates an Umee (uumee) sdk.Coins with the given amount
func UmeeCoins(amount int64) sdk.Coins {
return sdk.NewCoins(sdk.NewInt64Coin(umee, amount))
}
Expand Down
2 changes: 1 addition & 1 deletion x/auction/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestMsgRewardsBid(t *testing.T) {
{"invalid ID", invalid, "auction ID"},
{"amount zero", invalid, "bid_amount: must be positive"},
{"amount negative", invalidAmount1, "bid_amount: must be positive"},
{"wrong denom", invalidDenom, "bid amount must be in " + coin.UmeeDenom},
{"wrong denom", invalidDenom, "bid amount must be in " + validMsg.Amount.Denom},
}
for _, tc := range tcs {
tcheckers.ErrorContains(t, tc.msg.ValidateBasic(), tc.errMsg, tc.name)
Expand Down

0 comments on commit 31998a5

Please sign in to comment.