mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-18 18:54:35 -05:00
feat: Completely decouple rpc-types to standalone crate (#5193)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -805,6 +805,7 @@ mod tests {
|
||||
use reth_payload_builder::test_utils::spawn_test_payload_service;
|
||||
use reth_primitives::{SealedBlock, B256, MAINNET};
|
||||
use reth_provider::test_utils::MockEthProvider;
|
||||
use reth_rpc_types_compat::engine::payload::execution_payload_from_sealed_block;
|
||||
use reth_tasks::TokioTaskExecutor;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver};
|
||||
@@ -837,7 +838,9 @@ mod tests {
|
||||
let (mut handle, api) = setup_engine_api();
|
||||
|
||||
tokio::spawn(async move {
|
||||
api.new_payload_v1(SealedBlock::default().into()).await.unwrap();
|
||||
api.new_payload_v1(execution_payload_from_sealed_block(SealedBlock::default()))
|
||||
.await
|
||||
.unwrap();
|
||||
});
|
||||
assert_matches!(handle.from_api.recv().await, Some(BeaconEngineMessage::NewPayload { .. }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user