Skip to content

Commit 8c09d1a

Browse files
add ReceiverContractExecutionStatus (#326)
* add ReceiverContractExecutionStatus * Auto-fix: buf format, gofmt, go generate, go mod tidy * add ReceiverContractExecutionStatus --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
1 parent 0cac87f commit 8c09d1a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

cre/capabilities/blockchain/aptos/v1alpha/client.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ message GasConfig {
145145

146146
// ========== WriteReport ==========
147147

148+
enum ReceiverContractExecutionStatus {
149+
RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0;
150+
RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1;
151+
}
152+
148153
message WriteReportRequest {
149154
bytes receiver = 1; // 32-byte Aptos account address of the receiver module
150155
optional GasConfig gas_config = 2; // optional gas configuration
@@ -156,6 +161,7 @@ message WriteReportReply {
156161
optional string tx_hash = 2; // transaction hash (hex string with 0x prefix)
157162
optional uint64 transaction_fee = 3; // gas used in octas
158163
optional string error_message = 4;
164+
optional ReceiverContractExecutionStatus receiver_contract_execution_status = 5;
159165
}
160166

161167
// ========== Service ==========

cre/go/installer/pkg/embedded_gen.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)