Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reorder methods
  • Loading branch information
ascjones committed Jan 31, 2023
commit 652beddace78f080dfd557231c64f51b4c9706aa
28 changes: 14 additions & 14 deletions crates/e2e/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ where
self.dry_run.message_result()
}

/// Returns the return value as raw bytes of the message from the dry-run.
///
/// Panics if the dry-run message call failed to execute.
pub fn return_data(&self) -> &[u8] {
&self.dry_run.exec_return_value().data
}

/// Returns the decoded return value of the message from the dry-run.
///
/// Panics if the value could not be decoded. The raw bytes can be accessed
Expand All @@ -151,6 +144,13 @@ where
self.dry_run.return_value()
}

/// Returns the return value as raw bytes of the message from the dry-run.
///
/// Panics if the dry-run message call failed to execute.
pub fn return_data(&self) -> &[u8] {
&self.dry_run.exec_return_value().data
}

/// Returns any debug message output by the contract decoded as UTF-8.
pub fn debug_message(&self) -> String {
self.dry_run.debug_message()
Expand Down Expand Up @@ -224,13 +224,6 @@ where
})
}

/// Returns the return value as raw bytes of the message from the dry-run.
///
/// Panics if the dry-run message call failed to execute.
pub fn return_data(&self) -> &[u8] {
&self.exec_return_value().data
}

/// Returns the decoded return value of the message from the dry-run.
///
/// Panics if the value could not be decoded. The raw bytes can be accessed
Expand All @@ -245,6 +238,13 @@ where
})
}

/// Returns the return value as raw bytes of the message from the dry-run.
///
/// Panics if the dry-run message call failed to execute.
pub fn return_data(&self) -> &[u8] {
&self.exec_return_value().data
}

/// Returns any debug message output by the contract decoded as UTF-8.
pub fn debug_message(&self) -> String {
String::from_utf8_lossy(&self.exec_result.debug_message).into()
Expand Down