mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-27 12:59:55 +00:00
BlockId removal: refactor: HeaderBackend::status (#12981)
It changes the arguments of `HeaderBackend::status` method from: `BlockId<Block>` to: `Block::Hash` This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
8d95737f41
commit
c237b82690
8 files changed
+18
-22
No files matched your search
@@ -234,8 +234,8 @@ impl HeaderBackend<Block> for MockClient {
|
||||
self.client.lock().info()
|
||||
}
|
||||
|
||||
fn status(&self, id: BlockId<Block>) -> sc_client_api::blockchain::Result<BlockStatus> {
|
||||
self.client.lock().status(id)
|
||||
fn status(&self, hash: Hash) -> sc_client_api::blockchain::Result<BlockStatus> {
|
||||
self.client.lock().status(hash)
|
||||
}
|
||||
|
||||
fn number(&self, hash: Hash) -> sc_client_api::blockchain::Result<Option<BlockNumber>> {
|
||||
|
||||
Reference in new issue
Block a user