Modify doublemap syntax (#4576)

* modify doublemap syntax

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
thiolliere
2020-01-10 11:52:56 +01:00
committed by Gavin Wood
parent 3d74b9b669
commit b74c88b3cc
15 changed files with 41 additions and 40 deletions
+2 -2
View File
@@ -492,10 +492,10 @@ decl_storage! {
}): map T::AssetId => T::Balance;
/// The free balance of a given asset under an account.
pub FreeBalance: double_map T::AssetId, twox_128(T::AccountId) => T::Balance;
pub FreeBalance: double_map T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
/// The reserved balance of a given asset under an account.
pub ReservedBalance: double_map T::AssetId, twox_128(T::AccountId) => T::Balance;
pub ReservedBalance: double_map T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
/// Next available ID for user-created asset.
pub NextAssetId get(fn next_asset_id) config(): T::AssetId;