Skip to content

Commit

Permalink
Merge branch 'cctx-validate-outbound' into cctx-validate-inbound
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jun 13, 2024
2 parents 4e468f7 + dd56896 commit 0a7234e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion x/crosschain/keeper/cctx_gateway_observers.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,5 @@ func (c CCTXGatewayObservers) InitiateOutbound(
return types.CctxStatus_Aborted, err
}
commit()
config.CCTX.SetPendingOutbound("")
return types.CctxStatus_PendingOutbound, nil
}
1 change: 0 additions & 1 deletion x/crosschain/keeper/cctx_gateway_zevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func (c CCTXGatewayZEVM) InitiateOutbound(
return types.CctxStatus_Aborted, err
}

config.CCTX.SetPendingOutbound("")
newCCTXStatus = c.crosschainKeeper.ValidateOutboundZEVM(ctx, config.CCTX, err, isContractReverted)
if newCCTXStatus == types.CctxStatus_OutboundMined {
commit()
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/cctx_orchestrator_validate_outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (k Keeper) validateFailedOutbound(
cctx *types.CrossChainTx,
oldStatus types.CctxStatus,
revertMsg string,
inputAmount math.Uint, // TODO: find different way for this
inputAmount math.Uint,
) error {
switch oldStatus {
case types.CctxStatus_PendingOutbound:
Expand Down
1 change: 1 addition & 0 deletions x/crosschain/keeper/initiate_outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ func (k Keeper) InitiateOutbound(ctx sdk.Context, config InitiateOutboundConfig)
)
}

config.CCTX.SetPendingOutbound("")
return cctxGateway.InitiateOutbound(ctx, config)
}

0 comments on commit 0a7234e

Please sign in to comment.