mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
BlockId removal: refactor: HeaderBackend::header (#1977)
* BlockId removal: refactor: HeaderBackend::header It changes the arguments of: - `HeaderBackend::header`, - `Client::header` methods from: `BlockId<Block>` to: `Block::Hash` This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) * update lockfile for {"polkadot", "substrate"} Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
fbce6fe120
commit
19ad8c8b38
@@ -24,7 +24,7 @@ use cumulus_test_client::{
|
||||
};
|
||||
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||
use sp_keyring::AccountKeyring::*;
|
||||
use sp_runtime::{generic::BlockId, traits::Header as HeaderT};
|
||||
use sp_runtime::traits::Header as HeaderT;
|
||||
use std::{env, process::Command};
|
||||
|
||||
fn call_validate_block_encoded_header(
|
||||
@@ -60,7 +60,7 @@ fn create_test_client() -> (Client, Header) {
|
||||
.build();
|
||||
|
||||
let genesis_header = client
|
||||
.header(&BlockId::number(0))
|
||||
.header(client.chain_info().genesis_hash)
|
||||
.ok()
|
||||
.flatten()
|
||||
.expect("Genesis header exists; qed");
|
||||
|
||||
Reference in New Issue
Block a user