sui_graphql_rpc/types/execution_result.rs
1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4use super::transaction_block_effects::TransactionBlockEffects;
5use async_graphql::*;
6
7/// The result of an execution, including errors that occurred during said execution.
8#[derive(SimpleObject, Clone)]
9pub(crate) struct ExecutionResult {
10 /// The errors field captures any errors that occurred during execution
11 pub errors: Option<Vec<String>>,
12
13 /// The effects of the executed transaction. Since the transaction was just executed
14 /// and not indexed yet, fields including `balance_changes`, `timestamp` and `checkpoint`
15 /// are not available.
16 pub effects: TransactionBlockEffects,
17}