Implement support for renaming runtime api functions (#2160)

* Implement support for renaming runtime api functions

* Redelete the wasm files

* FIxes test

* Fix test correctly...

* Bring back old `authorities`

* Tag as deprecated

* Fixes compilation on WASM

* Add missing method implementations

* Fixes tests

* Increase `spec_version`
This commit is contained in:
Bastian Köcher
2019-04-02 10:05:35 +02:00
committed by Gav Wood
parent e89ce263bd
commit 345145326b
13 changed files with 288 additions and 81 deletions
+8
View File
@@ -296,6 +296,10 @@ cfg_if! {
fn initialize_block(header: &<Block as BlockT>::Header) {
system::initialize_block(header)
}
fn authorities() -> Vec<AuthorityId> {
panic!("Deprecated, please use `AuthoritiesApi`.")
}
}
impl client_api::Metadata<Block> for Runtime {
@@ -403,6 +407,10 @@ cfg_if! {
fn initialize_block(header: &<Block as BlockT>::Header) {
system::initialize_block(header)
}
fn authorities() -> Vec<AuthorityId> {
panic!("Deprecated, please use `AuthoritiesApi`.")
}
}
impl client_api::Metadata<Block> for Runtime {