RPC simulateTransaction endpoint now returns program log output (#10432)

This commit is contained in:
Michael Vines
2020-06-06 10:18:28 -07:00
committed by GitHub
parent 718244fb8f
commit 7e2651ca51
13 changed files with 295 additions and 120 deletions

View File

@@ -211,6 +211,13 @@ pub struct RpcSignatureConfirmation {
pub status: Result<()>,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RpcSimulateTransactionResult {
pub err: Option<TransactionError>,
pub logs: Option<Vec<String>>,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RpcStorageTurn {