Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Dec 20, 2024
1 parent 3aaacdf commit 81c46a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/crosschain/keeper/evm_deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ func (k Keeper) HandleEVMDeposit(ctx sdk.Context, cctx *types.CrossChainTx) (boo
}

// use a temporary context to not commit any state change in case of error
// note: ZRC20DepositAndCallContract is solely responsible for calling the contract and depositing tokens if needed
// and does not include any other side effects or any logic that modifies the state directly
tmpCtx, commit := ctx.CacheContext()

evmTxResponse, contractCall, err := k.fungibleKeeper.ZRC20DepositAndCallContract(
Expand Down

0 comments on commit 81c46a0

Please sign in to comment.