Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jan 2, 2024
1 parent 03a359a commit 439d983
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions x/uibc/quota/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/umee-network/umee/v6/util/genmap"
ltypes "github.com/umee-network/umee/v6/x/leverage/types"
)

Expand All @@ -23,13 +24,7 @@ func (k LeverageKeeper) GetTokenSettings(_ sdk.Context, baseDenom string) (ltype
}

func (k LeverageKeeper) GetAllRegisteredTokens(_ sdk.Context) []ltypes.Token {
tokens := make([]ltypes.Token, len(k.tokenSettings))
i := 0
for _, t := range k.tokenSettings {
tokens[i] = t
i++
}
return tokens
return genmap.MapToSlice(k.tokenSettings)
}

func (k LeverageKeeper) ToToken(_ sdk.Context, _ sdk.Coin) (sdk.Coin, error) {
Expand Down

0 comments on commit 439d983

Please sign in to comment.