Skip to content

Commit

Permalink
fix store key
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jan 9, 2024
1 parent c3f306d commit c665113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osmoutils/store_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c665113

Please sign in to comment.