Skip to content

Commit

Permalink
fix: return ExecutionPayloadV3 from get_payload_v3 (alloy-rs#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored and ben186 committed Jul 27, 2024
1 parent 16e5845 commit e59db91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/provider/src/ext/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub trait EngineApi<N, T>: Send + Sync {
///
/// Note:
/// > Provider software MAY stop the corresponding build process after serving this call.
async fn get_payload_v3(&self, payload_id: PayloadId) -> TransportResult<ExecutionPayloadV2>;
async fn get_payload_v3(&self, payload_id: PayloadId) -> TransportResult<ExecutionPayloadV3>;

/// Returns the execution payload bodies by the given hash.
///
Expand Down Expand Up @@ -218,7 +218,7 @@ where
self.client().request("engine_getPayloadV2", (payload_id,)).await
}

async fn get_payload_v3(&self, payload_id: PayloadId) -> TransportResult<ExecutionPayloadV2> {
async fn get_payload_v3(&self, payload_id: PayloadId) -> TransportResult<ExecutionPayloadV3> {
self.client().request("engine_getPayloadV3", (payload_id,)).await
}

Expand Down

0 comments on commit e59db91

Please sign in to comment.