Skip to content

Commit

Permalink
fix: broken links to op specs in code
Browse files Browse the repository at this point in the history
  • Loading branch information
krauspt committed Feb 10, 2024
1 parent a53a77c commit e1c710e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/engine/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl TryFrom<Block<Transaction>> for ExecutionPayload {
/// ## PayloadAttributes
///
/// L2 extended payload attributes for Optimism.
/// For more details, visit the [Optimism specs](https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#extended-payloadattributesv1).
/// For more details, visit the [Optimism specs](https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/exec-engine.md#extended-payloadattributesv1).
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct PayloadAttributes {
Expand Down
8 changes: 4 additions & 4 deletions src/engine/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::{
///
/// A set of methods that allow a consensus client to interact with an execution engine.
/// This is a modified version of the [Ethereum Execution API Specs](https://github.com/ethereum/execution-apis),
/// as defined in the [Optimism Exec Engine Specs](https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md).
/// as defined in the [Optimism Exec Engine Specs](https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/exec-engine.md).
#[async_trait]
pub trait Engine: Send + Sync + 'static {
/// ## forkchoice_updated
Expand All @@ -33,7 +33,7 @@ pub trait Engine: Send + Sync + 'static {
///
/// ### Reference
///
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#engine_forkchoiceupdatedv1).
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/exec-engine.md#engine_forkchoiceupdatedv1).
async fn forkchoice_updated(
&self,
forkchoice_state: ForkchoiceState,
Expand All @@ -58,7 +58,7 @@ pub trait Engine: Send + Sync + 'static {
///
/// ### Reference
///
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#engine_newPayloadv1).
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/exec-engine.md#engine_newPayloadv1).
async fn new_payload(&self, execution_payload: ExecutionPayload) -> Result<PayloadStatus>;

/// ## get_payload
Expand All @@ -80,6 +80,6 @@ pub trait Engine: Send + Sync + 'static {
///
/// ### Reference
///
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/optimism/blob/develop/specs/exec-engine.md#engine_getPayloadv1).
/// See more details in the [Optimism Specs](https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/exec-engine.md#engine_getPayloadv1).
async fn get_payload(&self, payload_id: PayloadId) -> Result<ExecutionPayload>;
}

0 comments on commit e1c710e

Please sign in to comment.