@@ -85,20 +85,18 @@ impl From<bool> for RecordProof {
8585/// backend to get the state of the block. Furthermore an optional `proof` is included which
8686/// can be used to proof that the build block contains the expected data. The `proof` will
8787/// only be set when proof recording was activated.
88- pub struct BuiltBlock < Block : BlockT , StateBackend : backend :: StateBackend < HashingFor < Block > > > {
88+ pub struct BuiltBlock < Block : BlockT > {
8989 /// The actual block that was build.
9090 pub block : Block ,
9191 /// The changes that need to be applied to the backend to get the state of the build block.
92- pub storage_changes : StorageChanges < StateBackend , Block > ,
92+ pub storage_changes : StorageChanges < Block > ,
9393 /// An optional proof that was recorded while building the block.
9494 pub proof : Option < StorageProof > ,
9595}
9696
97- impl < Block : BlockT , StateBackend : backend:: StateBackend < HashingFor < Block > > >
98- BuiltBlock < Block , StateBackend >
99- {
97+ impl < Block : BlockT > BuiltBlock < Block > {
10098 /// Convert into the inner values.
101- pub fn into_inner ( self ) -> ( Block , StorageChanges < StateBackend , Block > , Option < StorageProof > ) {
99+ pub fn into_inner ( self ) -> ( Block , StorageChanges < Block > , Option < StorageProof > ) {
102100 ( self . block , self . storage_changes , self . proof )
103101 }
104102}
@@ -145,8 +143,7 @@ impl<'a, Block, A, B> BlockBuilder<'a, Block, A, B>
145143where
146144 Block : BlockT ,
147145 A : ProvideRuntimeApi < Block > + ' a ,
148- A :: Api :
149- BlockBuilderApi < Block > + ApiExt < Block , StateBackend = backend:: StateBackendFor < B , Block > > ,
146+ A :: Api : BlockBuilderApi < Block > + ApiExt < Block > ,
150147 B : backend:: Backend < Block > ,
151148{
152149 /// Create a new instance of builder based on the given `parent_hash` and `parent_number`.
@@ -231,7 +228,7 @@ where
231228 /// Returns the build `Block`, the changes to the storage and an optional `StorageProof`
232229 /// supplied by `self.api`, combined as [`BuiltBlock`].
233230 /// The storage proof will be `Some(_)` when proof recording was enabled.
234- pub fn build ( mut self ) -> Result < BuiltBlock < Block , backend :: StateBackendFor < B , Block > > , Error > {
231+ pub fn build ( mut self ) -> Result < BuiltBlock < Block > , Error > {
235232 let header = self . api . finalize_block ( self . parent_hash ) ?;
236233
237234 debug_assert_eq ! (
0 commit comments