Struct multiversx_chain_vm::tx_mock::TxResult
source · pub struct TxResult {
pub result_status: u64,
pub result_message: String,
pub result_values: Vec<Vec<u8>>,
pub result_logs: Vec<TxLog>,
pub pending_calls: TxResultCalls,
pub all_calls: Vec<AsyncCallTxData>,
}
Fields§
§result_status: u64
§result_message: String
§result_values: Vec<Vec<u8>>
§result_logs: Vec<TxLog>
§pending_calls: TxResultCalls
Calls that need to be executed.
Structure is emptied as soon as async calls are executed.
all_calls: Vec<AsyncCallTxData>
All async calls launched from the tx (legacy async, promises, transfer-execute).
Is never cleared of its contents.
Implementations§
source§impl TxResult
impl TxResult
pub fn empty() -> TxResult
pub fn print(&self)
pub fn from_panic_obj(panic_obj: &TxPanic) -> Self
pub fn from_panic_string(s: &str) -> Self
pub fn from_unknown_panic() -> Self
pub fn from_vm_error<S>(result_message: S) -> Selfwhere S: Into<String>,
pub fn merge_after_sync_call(&mut self, sync_call_result: &TxResult)
pub fn assert_ok(&self)
pub fn assert_error(&self, expected_status: u64, expected_message: &str)
pub fn assert_user_error(&self, expected_message: &str)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TxResult
impl Send for TxResult
impl Sync for TxResult
impl Unpin for TxResult
impl UnwindSafe for TxResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more