refactor: use ExecutionOutcome::single instead of tuple From (#21152)

This commit is contained in:
Matthias Seitz
2026-01-17 02:51:26 +01:00
committed by GitHub
parent 574bde0d6f
commit 6bf43ab24a

View File

@@ -954,19 +954,19 @@ impl<N: NodePrimitives<SignedTx: SignedTransaction>> NewCanonicalChain<N> {
[first, rest @ ..] => {
let mut chain = Chain::from_block(
first.recovered_block().clone(),
ExecutionOutcome::from((
first.execution_outcome().clone(),
ExecutionOutcome::single(
first.block_number(),
)),
first.execution_outcome().clone(),
),
first.trie_data_handle(),
);
for exec in rest {
chain.append_block(
exec.recovered_block().clone(),
ExecutionOutcome::from((
exec.execution_outcome().clone(),
ExecutionOutcome::single(
exec.block_number(),
)),
exec.execution_outcome().clone(),
),
exec.trie_data_handle(),
);
}