Add missing child trie rpc on_custom_message handler (#3522)

* missing on_custom for child read.

* fix and complete, add test cases.

* shorten line.

* replace vecs of key value tuple with maps.
This commit is contained in:
cheme
2019-09-01 02:19:54 +02:00
committed by Gavin Wood
parent 63c15c9803
commit 816e132cd7
7 changed files with 167 additions and 14 deletions
+7 -4
View File
@@ -48,7 +48,7 @@ mod tests {
runtime::{Hash, Transfer, Block, BlockNumber, Header, Digest},
AccountKeyring, Sr25519Keyring,
};
use primitives::Blake2Hasher;
use primitives::{Blake2Hasher, map};
use hex::*;
native_executor_instance!(
@@ -152,7 +152,8 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
1000,
None,
vec![],
map![],
map![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);
@@ -181,7 +182,8 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
1000,
None,
vec![],
map![],
map![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);
@@ -210,7 +212,8 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
68,
None,
vec![],
map![],
map![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);