Skip to content

Commit

Permalink
Fix up e2e docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones committed Jan 30, 2023
1 parent b5552c4 commit 7916ff5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/e2e/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use super::{
use contract_metadata::ContractMetadata;
use ink_env::Environment;
use ink_primitives::MessageResult;

use pallet_contracts_primitives::ExecReturnValue;
use sp_core::Pair;
use std::{
collections::BTreeMap,
Expand Down Expand Up @@ -146,7 +146,7 @@ where
/// 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
/// via [`return_data`].
/// via [`CallResult::return_data`].
pub fn return_value(self) -> V {
self.dry_run.return_value()
}
Expand Down Expand Up @@ -193,7 +193,7 @@ where
/// Returns the [`ExecReturnValue`] resulting from the dry-run message call.
///
/// Panics if the dry-run message call failed to execute.
pub fn exec_return_value(&self) -> &pallet_contracts_primitives::ExecReturnValue {
pub fn exec_return_value(&self) -> &ExecReturnValue {
self.exec_result
.result
.as_ref()
Expand Down Expand Up @@ -227,7 +227,7 @@ where
/// 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
/// via [`return_data`].
/// via [`CallResult::return_data`].
pub fn return_value(self) -> V {
self.message_result()
.unwrap_or_else(|lang_err| {
Expand Down
4 changes: 4 additions & 0 deletions crates/e2e/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ pub use builders::{
pub use client::{
Client,
Error,
CallResult,
CallDryRunResult,
InstantiationResult,
UploadResult,
};
pub use default_accounts::*;
pub use env_logger;
Expand Down

0 comments on commit 7916ff5

Please sign in to comment.