Skip to content

Commit

Permalink
fix(logic): sort result for locked coin denom
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jan 19, 2023
1 parent b61ce52 commit bc5e867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/logic/predicate/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func SpendableCoinsSorted(sdkContext sdk.Context, bankKeeper types.BankKeeper, b
// LockedCoinsSorted returns the list of spendable coins for the given address, sorted by coin denomination.
func LockedCoinsSorted(sdkContext sdk.Context, bankKeeper types.BankKeeper, bech32Addr sdk.AccAddress) sdk.Coins {
fetchedBalances := bankKeeper.LockedCoins(sdkContext, bech32Addr)
return BalancesSorted(fetchedBalances)
SortBalances(fetchedBalances)
return fetchedBalances
}

// CoinsToTerm converts the given coins to a term of the form:
Expand Down

0 comments on commit bc5e867

Please sign in to comment.