Skip to content

Commit

Permalink
Remove additional branch in CancelBatchTx method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Oct 7, 2024
1 parent 59485ee commit 61a322a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions module/x/gravity/keeper/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ func (k Keeper) GetBatchFeesByTokenType(ctx sdk.Context, tokenContractAddr commo

// CancelBatchTx releases all TX in the batch and deletes the batch
func (k Keeper) CancelBatchTx(ctx sdk.Context, batch *types.BatchTx) {
// If it's not in the store, it's already been completed, so we don't need to cancel it
if k.GetOutgoingTx(ctx, batch.GetStoreIndex()) == nil {
return
}

// free transactions from batch and reindex them
for _, tx := range batch.Transactions {
k.setUnbatchedSendToEthereum(ctx, tx)
Expand Down

0 comments on commit 61a322a

Please sign in to comment.