From c621bf1cde392f9452619986f9a985288e51e61c Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Mon, 26 Feb 2024 09:40:38 +0100 Subject: [PATCH] Fix more doc --- drink/src/lib.rs | 2 +- examples/chain-extension/Cargo.toml | 2 +- examples/chain-extension/README.md | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drink/src/lib.rs b/drink/src/lib.rs index 78fe9c0..6b4c3cd 100644 --- a/drink/src/lib.rs +++ b/drink/src/lib.rs @@ -26,7 +26,7 @@ pub use mock::{mock_message, ContractMock, MessageMock, MockedCallResult, Select use pallet_contracts::{debug::ExecResult, ExecReturnValue}; use pallet_contracts_uapi::ReturnFlags; use parity_scale_codec::{Decode, Encode}; -/// Export crates that are used in the create_minimal_runtime macro. +/// Export crates that are used in the create_minimal_sandbox macro. pub use { frame_support, frame_system, pallet_balances, pallet_contracts, pallet_timestamp, paste, sp_externalities::Extension, sp_io::TestExternalities, diff --git a/examples/chain-extension/Cargo.toml b/examples/chain-extension/Cargo.toml index c61407e..6f70099 100644 --- a/examples/chain-extension/Cargo.toml +++ b/examples/chain-extension/Cargo.toml @@ -18,7 +18,7 @@ scale-info = { version = "2.6", default-features = false, features = ["derive"], [dev-dependencies] drink = { path = "../../drink" } -# If you are creating a custom runtime with `drink::create_minimal_runtime!` macro, unfortunately you need to +# If you are creating a custom runtime with `drink::create_minimal_sandbox!` macro, unfortunately you need to # include these dependencies manually. Versions should match the ones in `Cargo.toml` of the `drink` crate. frame-support = "28.0.0" frame-system = "28.0.0" diff --git a/examples/chain-extension/README.md b/examples/chain-extension/README.md index 4fefddc..9d64110 100644 --- a/examples/chain-extension/README.md +++ b/examples/chain-extension/README.md @@ -7,16 +7,16 @@ The thing that `drink` makes easier for you is combining an arbitrary chain exte By simply calling: ```rust -create_minimal_runtime!( - RuntimeWithCustomChainExtension, +create_minimal_sandbox!( + SandboxWithCustomChainExtension, path::to::MyCustomChainExtension ); ``` -you are provided with a runtime that contains your custom chain extension and can be used to test your contract like: +you are provided with a `Sandbox` with a runtime that contains your custom chain extension and can be used to test your contract like: ```rust -Session::::default() +Session::::default() .deploy_bundle_and(...)? .call(...)? ```