Skip to content

Commit

Permalink
fix: swapIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Nov 29, 2023
1 parent 4a4651d commit 04a2f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tokens/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func EndBlocker(ctx sdk.Context, timelockKeeper timelock.Keeper, swapKeeper swap
break
}
var automaticSwap swap.AtomicSwap
swapKeeper.CDC().MustUnmarshalBinaryBare(iterator.Value(), &automaticSwap)
swapID := iterator.Key()[len(swap.HashKey):]
swapKeeper.CDC().MustUnmarshalBinaryBare(swapIterator.Value(), &automaticSwap)
swapID := swapIterator.Key()[len(swap.HashKey):]
result := swap.HandleRefundHashTimerLockedTransferAfterBCFusion(ctx, swapKeeper, swap.RefundHTLTMsg{
From: automaticSwap.From,
SwapID: swapID,
Expand Down

0 comments on commit 04a2f92

Please sign in to comment.