mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
Rework InspectState (#7271)
Reworks `InspectState` in two ways: - Renames `inspect_with` to `inspect_state` to reflect the trait name. - Make `inspect_state` return the result of the closure
This commit is contained in:
@@ -133,8 +133,10 @@ impl core::Benchmark for ImportBenchmark {
|
||||
let elapsed = start.elapsed();
|
||||
|
||||
// Sanity checks.
|
||||
context.client.state_at(&BlockId::number(1)).expect("state_at failed for block#1")
|
||||
.inspect_with(|| {
|
||||
context.client
|
||||
.state_at(&BlockId::number(1))
|
||||
.expect("state_at failed for block#1")
|
||||
.inspect_state(|| {
|
||||
match self.block_type {
|
||||
BlockType::RandomTransfersKeepAlive => {
|
||||
// should be 5 per signed extrinsic + 1 per unsigned
|
||||
|
||||
Reference in New Issue
Block a user