diff --git a/osmoutils/store_helper.go b/osmoutils/store_helper.go index 8c3759af199..f5d00b5fd77 100644 --- a/osmoutils/store_helper.go +++ b/osmoutils/store_helper.go @@ -254,7 +254,7 @@ func GetCoinArrayFromPrefix(ctx sdk.Context, storeKey storetypes.StoreKey, store // If the denom is not found, a zero coin is returned. func GetCoinByDenomFromPrefix(ctx sdk.Context, storeKey storetypes.StoreKey, storePrefix []byte, denom string) (sdk.Coin, error) { store := prefix.NewStore(ctx.KVStore(storeKey), storePrefix) - key := append(storePrefix, []byte(denom)...) + key := []byte(fmt.Sprintf("%s%s%s", storePrefix, "|", []byte(denom))) bz := store.Get(key) if len(bz) == 0 {