diff --git a/examples/async/examples/query_runtime_api.rs b/examples/async/examples/query_runtime_api.rs index 8ad45b8cc..688dc1384 100644 --- a/examples/async/examples/query_runtime_api.rs +++ b/examples/async/examples/query_runtime_api.rs @@ -53,7 +53,7 @@ async fn main() { println!("To exceute the balance extrinsic, the following fee is required: {:?}", final_fee); // Get the authority Ids. - let authority_ids: Vec = runtime_api.authority_discovery(None).await.unwrap(); + let authority_ids: Vec = runtime_api.authorities(None).await.unwrap(); println!("The following authorities are currently active:"); for authority in authority_ids { println!("{:?}", authority); diff --git a/src/api/runtime_api/authority_discovery.rs b/src/api/runtime_api/authority_discovery.rs index 5f5059f43..f41026246 100644 --- a/src/api/runtime_api/authority_discovery.rs +++ b/src/api/runtime_api/authority_discovery.rs @@ -22,7 +22,7 @@ use codec::Decode; #[maybe_async::maybe_async(?Send)] pub trait AuthorityDiscoveryApi: RuntimeApi { /// Retrieve authority identifiers of the current and next authority set. - async fn authority_discovery( + async fn authorities( &self, at_block: Option, ) -> Result>; @@ -34,7 +34,7 @@ where T: Config, Client: Request, { - async fn authority_discovery( + async fn authorities( &self, at_block: Option, ) -> Result> { diff --git a/testing/async/examples/runtime_api_tests.rs b/testing/async/examples/runtime_api_tests.rs index 17a1b0f49..4f5aec15c 100644 --- a/testing/async/examples/runtime_api_tests.rs +++ b/testing/async/examples/runtime_api_tests.rs @@ -51,7 +51,7 @@ async fn main() { assert_eq!(alice_nonce, api.get_nonce().await.unwrap()); // Authority Discovery - let authority_id: Vec = runtime_api.authority_discovery(None).await.unwrap(); + let authority_id: Vec = runtime_api.authorities(None).await.unwrap(); assert!(authority_id.len() > 0); // BlockBuilder