From c31d2162d82d4aee7faed414200b80f8bdfc6116 Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Fri, 8 Sep 2023 16:31:31 -0400 Subject: [PATCH] fix: return events --- cmd/soroban-cli/src/rpc/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-cli/src/rpc/mod.rs b/cmd/soroban-cli/src/rpc/mod.rs index 14ef5341c5..a1a63d6251 100644 --- a/cmd/soroban-cli/src/rpc/mod.rs +++ b/cmd/soroban-cli/src/rpc/mod.rs @@ -7,8 +7,9 @@ use serde_aux::prelude::{deserialize_default_from_null, deserialize_number_from_ use soroban_env_host::xdr::{ self, AccountEntry, AccountId, ContractDataEntry, DiagnosticEvent, Error as XdrError, LedgerEntryData, LedgerFootprint, LedgerKey, LedgerKeyAccount, PublicKey, ReadXdr, - SorobanAuthorizationEntry, SorobanResources, Transaction, TransactionEnvelope, TransactionMeta, - TransactionMetaV3, TransactionResult, TransactionV1Envelope, Uint256, VecM, WriteXdr, + SequenceNumber, SorobanAuthorizationEntry, SorobanResources, Transaction, TransactionEnvelope, + TransactionMeta, TransactionMetaV3, TransactionResult, TransactionV1Envelope, Uint256, VecM, + WriteXdr, }; use soroban_env_host::xdr::{DepthLimitedRead, SorobanAuthorizedFunction}; use soroban_sdk::token; @@ -687,7 +688,8 @@ soroban config identity fund {address} --helper-url "# (part_signed_tx, events) } else { // re-simulate to calculate the new fees - self.prepare_transaction(&part_signed_tx).await?.0 + let (tx, _, events) = self.prepare_transaction(&part_signed_tx).await?; + (tx, events) }; // Try logging stuff if requested