BlockId removal: Client::runtime_version_at (#13393)

* BlockId removal: Client::runtime_version_at

It changes the arguments of `Client::runtime_version_at` from: `BlockId<Block>` to: `Block::Hash`

* Apply suggestions from code review

Co-authored-by: Anton <anton.kalyaev@gmail.com>

---------

Co-authored-by: Anton <anton.kalyaev@gmail.com>
Co-authored-by: parity-processbot <>
This commit is contained in:
Michal KucharczykAntonparity-processbot
authored and GitHub committed 2023-02-16 22:34:00 +00:00
1 parent 2e4ea01311
commit 36480b158d
7 files changed
+14 -19

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ impl core::Benchmark for ConstructionBenchmark {
let _ = context
.client
.runtime_version_at(&BlockId::Number(0))
.runtime_version_at(context.client.chain_info().genesis_hash)
.expect("Failed to get runtime version")
.spec_version;