Use JsonPayload for payload reconstruction (#3797)

This commit is contained in:
Michael Sproul
2022-12-14 11:52:46 +11:00
committed by GitHub
parent 07d6ef749a
commit 75dd8780e0
3 changed files with 46 additions and 20 deletions

View File

@@ -76,7 +76,7 @@ impl<T: EthSpec> Block<T> {
pub fn as_execution_block_with_tx(&self) -> Option<ExecutionBlockWithTransactions<T>> {
match self {
Block::PoS(payload) => Some(payload.clone().into()),
Block::PoS(payload) => Some(payload.clone().try_into().unwrap()),
Block::PoW(_) => None,
}
}