Move double map to support module and generalize it (#1379)

* Move double map to support and generalize it

* add docs back

* reduces the number of required allocations
This commit is contained in:
Xiliang Chen
2019-01-11 23:44:15 +13:00
committed by Gav Wood
parent cc3748f034
commit bf51b8a5ad
5 changed files with 55 additions and 45 deletions
+1 -2
View File
@@ -17,11 +17,10 @@
//! Auxilliaries to help with managing partial changes to accounts state.
use super::{CodeOf, StorageOf, Trait};
use double_map::StorageDoubleMap;
use rstd::cell::RefCell;
use rstd::collections::btree_map::{BTreeMap, Entry};
use rstd::prelude::*;
use runtime_support::StorageMap;
use runtime_support::{StorageMap, StorageDoubleMap};
use {balances, system};
pub struct ChangeEntry<T: Trait> {