mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Switch All construct_runtimes to New Syntax (#2979)
Clean up all the old syntax. --------- Co-authored-by: command-bot <> Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com> Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com> Co-authored-by: Maksym H <1177472+mordamax@users.noreply.github.com>
This commit is contained in:
@@ -282,7 +282,7 @@ pub use sp_api_proc_macro::decl_runtime_apis;
|
||||
/// #
|
||||
/// # /// The declaration of the `Runtime` type is done by the `construct_runtime!` macro
|
||||
/// # /// in a real runtime.
|
||||
/// # pub struct Runtime {}
|
||||
/// # pub enum Runtime {}
|
||||
/// #
|
||||
/// # sp_api::decl_runtime_apis! {
|
||||
/// # /// Declare the api trait.
|
||||
@@ -361,7 +361,7 @@ pub use sp_api_proc_macro::decl_runtime_apis;
|
||||
/// let's say you want to implement a staging version of the runtime api and put it behind a
|
||||
/// feature flag. You can do it this way:
|
||||
/// ```ignore
|
||||
/// pub struct Runtime {}
|
||||
/// pub enum Runtime {}
|
||||
/// sp_api::decl_runtime_apis! {
|
||||
/// pub trait ApiWithStagingMethod {
|
||||
/// fn stable_one(data: u64);
|
||||
|
||||
Reference in New Issue
Block a user