Encode Metadata once instead of two times (#946)

This commit is contained in:
Bastian Köcher
2018-10-25 09:36:57 +02:00
committed by Gav Wood
parent 1ba73e0e88
commit 6244b6a3b9
6 changed files with 17 additions and 23 deletions
+2 -2
View File
@@ -436,8 +436,8 @@ decl_apis! {
}
/// The `Metadata` api trait that returns metadata for the runtime.
pub trait Metadata {
fn metadata() -> Vec<u8>;
pub trait Metadata<Data> {
fn metadata() -> Data;
}
/// The `OldTxQueue` api trait for interfering with the old transaction queue.