Files
pezkuwi-subxt/substrate/primitives/api/test/tests/ui/impl_missing_version.rs
T
Bastian Köcher e7a27a31b1 sp-api: Remove requirement on Get*BlockType (#14299)
Remove the requirement on `GetNodeBlockType` and `GetRuntimeBlockType`. Actually this wasn't already
used anymore and only referenced in tests.
2023-06-04 09:55:53 +01:00

38 lines
646 B
Rust

use sp_runtime::traits::Block as BlockT;
use substrate_test_runtime_client::runtime::Block;
struct Runtime {}
sp_api::decl_runtime_apis! {
#[api_version(2)]
pub trait Api {
fn test1();
fn test2();
#[api_version(3)]
fn test3();
}
}
sp_api::impl_runtime_apis! {
#[api_version(4)]
impl self::Api<Block> for Runtime {
fn test1() {}
fn test2() {}
fn test3() {}
}
impl sp_api::Core<Block> for Runtime {
fn version() -> sp_version::RuntimeVersion {
unimplemented!()
}
fn execute_block(_: Block) {
unimplemented!()
}
fn initialize_block(_: &<Block as BlockT>::Header) {
unimplemented!()
}
}
}
fn main() {}