Skip to content

Commit

Permalink
Fix more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 26, 2024
1 parent 3ba778d commit c621bf1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/chain-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions examples/chain-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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::<RuntimeWithCustomChainExtension>::default()
Session::<SandboxWithCustomChainExtension>::default()
.deploy_bundle_and(...)?
.call(...)?
```

0 comments on commit c621bf1

Please sign in to comment.