mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
use the map! macro instead of defining it all over the place (#867)
* remove one map implementation in test * remove one map macro * remove one map macro * remove one map macro
This commit is contained in:
@@ -68,12 +68,6 @@ impl GenesisConfig {
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! map {
|
||||
($( $name:expr => $value:expr ),*) => (
|
||||
vec![ $( ( $name, $value ) ),* ].into_iter().collect()
|
||||
)
|
||||
}
|
||||
|
||||
pub fn additional_storage_with_genesis(genesis_block: &::Block) -> HashMap<Vec<u8>, Vec<u8>> {
|
||||
map![
|
||||
twox_128(&b"latest"[..]).to_vec() => genesis_block.hash().0.to_vec()
|
||||
|
||||
Reference in New Issue
Block a user