mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Add versioning to ParachainHost runtime API (#652)
* add version to ParachainHost API * better error message
This commit is contained in:
committed by
Gavin Wood
parent
d80adceea8
commit
ab2333da89
@@ -591,6 +591,7 @@ use runtime_primitives::traits::{Block as BlockT};
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
/// The API for querying the state of parachains on-chain.
|
||||
#[api_version(2)]
|
||||
pub trait ParachainHost {
|
||||
/// Get the current validators.
|
||||
fn validators() -> Vec<ValidatorId>;
|
||||
|
||||
Reference in New Issue
Block a user