Skip to content

Commit

Permalink
include new generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Oct 4, 2024
1 parent e901161 commit b0c1ffc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
6 changes: 6 additions & 0 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58446,8 +58446,14 @@ definitions:
$ref: '#/definitions/crosschainCctxStatus'
status_message:
type: string
description: |-
status_message carries information about the status transitions:
why they were triggered, old and new status.
error_message:
type: string
description: |-
error_message carries information about the error that caused the tx
to be PendingRevert, Reverted or Aborted.
lastUpdate_timestamp:
type: string
format: int64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,17 @@ export declare class Status extends Message<Status> {
status: CctxStatus;

/**
* status_message carries information about the status transitions:
* why they were triggered, old and new status.
*
* @generated from field: string status_message = 2;
*/
statusMessage: string;

/**
* error_message carries information about the error that caused the tx
* to be PendingRevert, Reverted or Aborted.
*
* @generated from field: string error_message = 6;
*/
errorMessage: string;
Expand Down
4 changes: 1 addition & 3 deletions x/crosschain/keeper/cctx_gateway_zevm.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package keeper

import (
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/zeta-chain/node/x/crosschain/types"
Expand Down Expand Up @@ -32,7 +30,7 @@ func (c CCTXGatewayZEVM) InitiateOutbound(
// exceptional case; internal error; should abort CCTX
config.CCTX.SetAbort(
"aborted because of an error during deposit that is not smart contract revert",
fmt.Sprintf("deposit error: %s", err.Error()))
err.Error())
return types.CctxStatus_Aborted, err
}

Expand Down
14 changes: 9 additions & 5 deletions x/crosschain/types/cross_chain_tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0c1ffc

Please sign in to comment.