Remove Index type from Config trait (#1074)

* remove config, doc tests are expected to fail (book not adjusted yet)

* make doc tests pass

* Prevent bug when reusing type ids in hashing (#1075)

* practice TDD

* implement a hashmap 2-phases approach

* use nicer types

* add test for cache filling

* adjust test

---------

Co-authored-by: James Wilson <james@jsdw.me>

* remove the unnecessary intos

---------

Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
Tadeo Hepperle
2023-07-20 15:13:55 +02:00
committed by GitHub
parent 475a1413e4
commit c2875de172
7 changed files with 38 additions and 35 deletions
-1
View File
@@ -20,7 +20,6 @@ pub use primitive_types::{H256, U256};
pub enum SubstrateConfig {}
impl Config for SubstrateConfig {
type Index = u32;
type Hash = H256;
type AccountId = AccountId32;
type Address = MultiAddress<Self::AccountId, u32>;