Swap order of addressbook & acocunts merge
This commit is contained in:
parent
be90245ecb
commit
21a3cf7b65
@ -57,7 +57,7 @@ impl<C: 'static> ParityAccounts for ParityAccountsClient<C> where C: MiningBlock
|
|||||||
let info = try!(store.accounts_info().map_err(|e| errors::account("Could not fetch account info.", e)));
|
let info = try!(store.accounts_info().map_err(|e| errors::account("Could not fetch account info.", e)));
|
||||||
let other = store.addresses_info().expect("addresses_info always returns Ok; qed");
|
let other = store.addresses_info().expect("addresses_info always returns Ok; qed");
|
||||||
|
|
||||||
Ok(info.into_iter().chain(other.into_iter()).map(|(a, v)| {
|
Ok(other.into_iter().chain(info.into_iter()).map(|(a, v)| {
|
||||||
let m = map![
|
let m = map![
|
||||||
"name".to_owned() => to_value(&v.name),
|
"name".to_owned() => to_value(&v.name),
|
||||||
"meta".to_owned() => to_value(&v.meta),
|
"meta".to_owned() => to_value(&v.meta),
|
||||||
|
Loading…
Reference in New Issue
Block a user