mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Remove default hasher (#4739)
* remove default hasher from decl_storage! * fix decl_storage declarations
This commit is contained in:
@@ -163,9 +163,9 @@ pub trait Trait: frame_system::Trait + pallet_timestamp::Trait {
|
||||
|
||||
decl_storage! {
|
||||
trait Store for Module<T: Trait> as Example {
|
||||
Accounts get(fn accounts) config(): map H160 => Account;
|
||||
AccountCodes: map H160 => Vec<u8>;
|
||||
AccountStorages: double_map H160, H256 => H256;
|
||||
Accounts get(fn accounts) config(): map hasher(blake2_256) H160 => Account;
|
||||
AccountCodes: map hasher(blake2_256) H160 => Vec<u8>;
|
||||
AccountStorages: double_map hasher(blake2_256) H160, hasher(blake2_256) H256 => H256;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user