mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 04:35:04 +00:00
Encode Metadata once instead of two times (#946)
This commit is contained in:
1 parent
1ba73e0e88
commit
6244b6a3b9
6 files changed
+17
-23
No files matched your search
@@ -81,7 +81,7 @@ pub use timestamp::Call as TimestampCall;
|
||||
pub use balances::Call as BalancesCall;
|
||||
pub use runtime_primitives::{Permill, Perbill};
|
||||
pub use timestamp::BlockPeriod;
|
||||
pub use srml_support::StorageValue;
|
||||
pub use srml_support::{StorageValue, RuntimeMetadata};
|
||||
|
||||
const TIMESTAMP_SET_POSITION: u32 = 0;
|
||||
const NOTE_OFFLINE_POSITION: u32 = 1;
|
||||
@@ -246,8 +246,8 @@ impl_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl Metadata for Runtime {
|
||||
fn metadata() -> Vec<u8> {
|
||||
impl Metadata<RuntimeMetadata> for Runtime {
|
||||
fn metadata() -> RuntimeMetadata {
|
||||
Runtime::metadata()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user