mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +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:
@@ -19,7 +19,7 @@
|
||||
|
||||
extern crate node_runtime;
|
||||
#[macro_use] extern crate substrate_executor;
|
||||
extern crate substrate_primitives as primitives;
|
||||
#[cfg_attr(test, macro_use)] extern crate substrate_primitives as primitives;
|
||||
|
||||
#[cfg(test)] extern crate substrate_keyring as keyring;
|
||||
#[cfg(test)] extern crate sr_primitives as runtime_primitives;
|
||||
@@ -69,13 +69,6 @@ mod tests {
|
||||
const COMPACT_CODE: &[u8] = include_bytes!("../../runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm");
|
||||
const GENESIS_HASH: [u8; 32] = [69u8; 32];
|
||||
|
||||
// TODO: move into own crate.
|
||||
macro_rules! map {
|
||||
($( $name:expr => $value:expr ),*) => (
|
||||
vec![ $( ( $name, $value ) ),* ].into_iter().collect()
|
||||
)
|
||||
}
|
||||
|
||||
fn alice() -> AccountId {
|
||||
AccountId::from(Keyring::Alice.to_raw_public())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user