mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Make Documentation Examples Compile (#2310)
* opening and closing links * sudo example compiles * add Aura after it was merged to master * Timestamp doc testing passes * Timestamp doc testing works, extraneous lines commented out * balances * remove extern crate line * Removed unneeded code snippet from aura * make consensus compiles * executive compiles * cleanup unnecessary lines * staking (removed examples that are just copies of tests) * Apply suggestions from code review * unindent example
This commit is contained in:
committed by
Bastian Köcher
parent
e31cd26a9e
commit
61e63a04fb
@@ -49,7 +49,16 @@
|
||||
//!
|
||||
//! `Executive` type declaration from the node template.
|
||||
//!
|
||||
//! ```ignore
|
||||
//! ```
|
||||
//! # use primitives::generic;
|
||||
//! # use srml_executive as executive;
|
||||
//! # pub struct UncheckedExtrinsic {};
|
||||
//! # pub struct Header {};
|
||||
//! # type Context = system::ChainContext<Runtime>;
|
||||
//! # pub type Block = generic::Block<Header, UncheckedExtrinsic>;
|
||||
//! # pub type Balances = u64;
|
||||
//! # pub type AllModules = u64;
|
||||
//! # pub enum Runtime {};
|
||||
//! /// Executive: handles dispatch to the various modules.
|
||||
//! pub type Executive = executive::Executive<Runtime, Block, Context, Balances, AllModules>;
|
||||
//! ```
|
||||
|
||||
Reference in New Issue
Block a user