Skip to content

Commit

Permalink
Update x/crosschain/keeper/evm_deposit.go
Browse files Browse the repository at this point in the history
Co-authored-by: skosito <[email protected]>
  • Loading branch information
lumtis and skosito authored Dec 20, 2024
1 parent e734db5 commit 3aaacdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/crosschain/keeper/evm_deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (k Keeper) HandleEVMDeposit(ctx sdk.Context, cctx *types.CrossChainTx) (boo
// process logs to process cctx events initiated during the contract call
err = k.ProcessLogs(tmpCtx, logs, to, txOrigin)
if err != nil {
// this happens if the cctx events are not processed correctly with invalid withdrawls
// this happens if the cctx events are not processed correctly with invalid withdrawals
// in this situation we want the CCTX to be reverted, we don't commit the state so the contract call is not persisted
// the contract call is considered as reverted
return true, errors.Wrap(types.ErrCannotProcessWithdrawal, err.Error())
Expand Down

0 comments on commit 3aaacdf

Please sign in to comment.