Skip to content

Commit

Permalink
Fix remaining changes
Browse files Browse the repository at this point in the history
  • Loading branch information
masihyeganeh committed Nov 20, 2024
1 parent ac7aa4f commit ec9e523
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/dex/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,8 @@ func (k Keeper) saveOrderData(ctx sdk.Context, orderSequence uint64, data types.
}

func (k Keeper) removeOrderData(ctx sdk.Context, orderSequence uint64) error {
return ctx.KVStore(k.storeKey).Delete(types.CreateOrderKey(orderSequence))
store := k.storeService.OpenKVStore(ctx)
return store.Delete(types.CreateOrderKey(orderSequence))
}

func (k Keeper) getOrderData(ctx sdk.Context, orderSequence uint64) (types.OrderData, error) {
Expand All @@ -1141,7 +1142,8 @@ func (k Keeper) saveOrderIDToSequence(ctx sdk.Context, accNumber uint64, orderID
}

func (k Keeper) removeOrderIDToSequence(ctx sdk.Context, accNumber uint64, orderID string) error {
return ctx.KVStore(k.storeKey).Delete(types.CreateOrderIDToSequenceKey(accNumber, orderID))
store := k.storeService.OpenKVStore(ctx)
return store.Delete(types.CreateOrderIDToSequenceKey(accNumber, orderID))
}

func (k Keeper) getOrderSequenceByID(ctx sdk.Context, accNumber uint64, orderID string) (uint64, error) {
Expand Down

0 comments on commit ec9e523

Please sign in to comment.