mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 09:47:56 +00:00
Clean up sr-io (#3609)
* Move trait `Printable` into `sr-primitives` * Cleanup runtime io trie_root interfaces * Remove last generic bits from sr-io interface * Fix srml-sudo after master merge * Fix benchmarks * Runtime bump
This commit is contained in:
@@ -8,9 +8,10 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||
use rstd::{vec::Vec, slice, vec};
|
||||
|
||||
use runtime_io::{
|
||||
set_storage, storage, clear_prefix, print, blake2_128, blake2_256,
|
||||
twox_128, twox_256, ed25519_verify, sr25519_verify, ordered_trie_root
|
||||
set_storage, storage, clear_prefix, blake2_128, blake2_256,
|
||||
twox_128, twox_256, ed25519_verify, sr25519_verify,
|
||||
};
|
||||
use sr_primitives::{print, traits::{BlakeTwo256, Hash}};
|
||||
use primitives::{ed25519, sr25519};
|
||||
|
||||
macro_rules! impl_stubs {
|
||||
@@ -94,12 +95,12 @@ impl_stubs!(
|
||||
[sr25519_verify(&sr25519::Signature(sig), &msg[..], &sr25519::Public(pubkey)) as u8].to_vec()
|
||||
},
|
||||
test_ordered_trie_root => |_| {
|
||||
ordered_trie_root::<primitives::Blake2Hasher, _, _>(
|
||||
&[
|
||||
&b"zero"[..],
|
||||
&b"one"[..],
|
||||
&b"two"[..],
|
||||
]
|
||||
BlakeTwo256::ordered_trie_root(
|
||||
vec![
|
||||
b"zero"[..].into(),
|
||||
b"one"[..].into(),
|
||||
b"two"[..].into(),
|
||||
],
|
||||
).as_ref().to_vec()
|
||||
},
|
||||
test_sandbox => |code: &[u8]| {
|
||||
|
||||
Reference in New Issue
Block a user