mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
BlockId removal: BlockBuilderProvider::new_block_at (#6734)
* `BlockId` removal: `BlockBuilderProvider::new_block_at`
It changes the arguments of `BlockBuilderProvider::new_block_at` from:
`BlockId<Block>` to: `Block::Hash`
* useless import removed
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
82b6db41e8
commit
0e59d866f3
Generated
+183
-183
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,7 @@ use sp_consensus_babe::{
|
|||||||
digests::{PreDigest, SecondaryPlainPreDigest},
|
digests::{PreDigest, SecondaryPlainPreDigest},
|
||||||
BABE_ENGINE_ID,
|
BABE_ENGINE_ID,
|
||||||
};
|
};
|
||||||
use sp_runtime::{generic::BlockId, traits::Block as BlockT, Digest, DigestItem};
|
use sp_runtime::{traits::Block as BlockT, Digest, DigestItem};
|
||||||
use sp_state_machine::BasicExternalities;
|
use sp_state_machine::BasicExternalities;
|
||||||
|
|
||||||
/// An extension for the test client to initialize a Polkadot specific block builder.
|
/// An extension for the test client to initialize a Polkadot specific block builder.
|
||||||
@@ -87,7 +87,7 @@ impl InitPolkadotBlockBuilder for Client {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let mut block_builder = self
|
let mut block_builder = self
|
||||||
.new_block_at(&BlockId::Hash(hash), digest, false)
|
.new_block_at(hash, digest, false)
|
||||||
.expect("Creates new block builder for test runtime");
|
.expect("Creates new block builder for test runtime");
|
||||||
|
|
||||||
let mut inherent_data = sp_inherents::InherentData::new();
|
let mut inherent_data = sp_inherents::InherentData::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user