Skip to content

Commit

Permalink
fix missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jul 26, 2023
1 parent 29e859d commit 2f3892e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rpc/rpc-api/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ pub trait EngineApi {
async fn new_payload_v2(&self, payload: ExecutionPayload) -> RpcResult<PayloadStatus>;

/// Post Cancun payload handler
///
/// See also <https://github.com/ethereum/execution-apis/blob/main/src/engine/cancun.md#engine_newpayloadv3>
#[method(name = "newPayloadV3")]
async fn new_payload_v3(
&self,
payload: ExecutionPayload,
versioned_hashes: Vec<H256>,
parent_beacon_block_root: H256,
) -> RpcResult<PayloadStatus>;

/// See also <https://github.com/ethereum/execution-apis/blob/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine/paris.md#engine_forkchoiceupdatedv1>
Expand Down
1 change: 1 addition & 0 deletions crates/rpc/rpc-engine-api/src/engine_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ where
&self,
_payload: ExecutionPayload,
_versioned_hashes: Vec<H256>,
_parent_beacon_block_root: H256,
) -> RpcResult<PayloadStatus> {
Err(jsonrpsee_types::error::ErrorCode::MethodNotFound.into())
}
Expand Down

0 comments on commit 2f3892e

Please sign in to comment.