mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
4d3557d5a1
* versionned runtime-interface * use only one additional wasm blob * alter docs * formatting, naming and docs * add comment for test * version duplicate err * RuntimeInterfaceItem -> RuntimeInterfaceFunction< * test naming * version checking * remove spaces * Update primitives/runtime-interface/proc-macro/src/runtime_interface/bare_function_interface.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * remove sanity checks and reduce coverage * add doc comment Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
18 lines
232 B
Rust
18 lines
232 B
Rust
use sp_runtime_interface::runtime_interface;
|
|
|
|
#[runtime_interface]
|
|
trait Test {
|
|
#[version(1)]
|
|
fn test2() {}
|
|
#[version(2)]
|
|
fn test2() {}
|
|
#[version(3)]
|
|
fn test2() {}
|
|
|
|
fn test() { }
|
|
#[version(3)]
|
|
fn test() { }
|
|
}
|
|
|
|
fn main() {}
|