diff --git a/util/coin/fixtures.go b/util/coin/fixtures.go index 89761bfdaf..63a7c295a1 100644 --- a/util/coin/fixtures.go +++ b/util/coin/fixtures.go @@ -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 @@ -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) +} + +// UmeeCoins creates an Umee (uumee) sdk.Coins with the given amount func UmeeCoins(amount int64) sdk.Coins { return sdk.NewCoins(sdk.NewInt64Coin(umee, amount)) } diff --git a/x/auction/msgs_test.go b/x/auction/msgs_test.go index 057af5d913..29728561a0 100644 --- a/x/auction/msgs_test.go +++ b/x/auction/msgs_test.go @@ -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)