mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 04:41:02 +00:00
BlockId removal: BlockBuilderProvider::new_block_at (#13401)
* `BlockId` removal: `BlockBuilderProvider::new_block_at` It changes the arguments of `BlockBuilderProvider::new_block_at` from: `BlockId<Block>` to: `Block::Hash` * fmt * fix * more fixes
This commit is contained in:
committed by
GitHub
parent
cd299d2b45
commit
5ef88dd398
@@ -124,7 +124,8 @@ impl MockClient {
|
||||
) -> MmrBlock {
|
||||
let mut client = self.client.lock();
|
||||
|
||||
let mut block_builder = client.new_block_at(at, Default::default(), false).unwrap();
|
||||
let hash = client.expect_block_hash_from_id(&at).unwrap();
|
||||
let mut block_builder = client.new_block_at(hash, Default::default(), false).unwrap();
|
||||
// Make sure the block has a different hash than its siblings
|
||||
block_builder
|
||||
.push_storage_change(b"name".to_vec(), Some(name.to_vec()))
|
||||
|
||||
Reference in New Issue
Block a user