Skip to content

Commit

Permalink
Fixup merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Mar 6, 2024
1 parent 83d2d43 commit eee00ad
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 62 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ use frame_system::EventRecord;
#[cfg(feature = "session")]
pub use session::mock::{mock_message, ContractMock, MessageMock, MockedCallResult, Selector};
/// Export pallets that are used in the minimal runtime.
pub use {frame_support, frame_system, pallet_balances, pallet_contracts, pallet_timestamp};
pub use {
frame_support, frame_system, pallet_balances, pallet_contracts, pallet_timestamp, paste,
sp_externalities::Extension, sp_io::TestExternalities,
};

pub use crate::runtime::minimal::{self, MinimalSandbox};

Expand Down
2 changes: 1 addition & 1 deletion drink/src/runtime/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<
/// Macro creating a minimal runtime with the given name. Optionally can take a chain extension
/// type as a second argument.
///
/// The new macro will automatically implement `drink::SandboxConfig`.
/// The new macro will automatically implement `drink::Sandbox`.
#[macro_export]
macro_rules! create_minimal_sandbox {
($name:ident) => {
Expand Down
51 changes: 0 additions & 51 deletions drink/src/sandbox/sandbox_config.rs

This file was deleted.

3 changes: 1 addition & 2 deletions drink/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ use error::SessionError;

use self::mocking_api::MockingApi;
use crate::{
errors::MessageResult, minimal::MinimalSandboxRuntime, runtime::MinimalRuntime,
session::transcoding::TranscoderRegistry,
errors::MessageResult, minimal::MinimalSandboxRuntime, session::transcoding::TranscoderRegistry,
};

type BalanceOf<R> =
Expand Down
3 changes: 1 addition & 2 deletions drink/src/session/mocking_api.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Mocking API for the sandbox.
use super::Session;
use crate::{
runtime::AccountIdFor, sandbox::prelude::*, session::mock::ContractMock, SandboxConfig,
DEFAULT_GAS_LIMIT,
runtime::AccountIdFor, sandbox::prelude::*, session::mock::ContractMock, DEFAULT_GAS_LIMIT,
};

/// Interface for basic mocking operations.
Expand Down
5 changes: 3 additions & 2 deletions examples/chain-extension/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eee00ad

Please sign in to comment.