mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: abstract OP payload builder over transaction (#14153)
This commit is contained in:
@ -98,22 +98,6 @@ impl BuiltPayload for EthBuiltPayload {
|
||||
}
|
||||
}
|
||||
|
||||
impl BuiltPayload for &EthBuiltPayload {
|
||||
type Primitives = EthPrimitives;
|
||||
|
||||
fn block(&self) -> &SealedBlock {
|
||||
(**self).block()
|
||||
}
|
||||
|
||||
fn fees(&self) -> U256 {
|
||||
(**self).fees()
|
||||
}
|
||||
|
||||
fn requests(&self) -> Option<Requests> {
|
||||
self.requests.clone()
|
||||
}
|
||||
}
|
||||
|
||||
// V1 engine_getPayloadV1 response
|
||||
impl From<EthBuiltPayload> for ExecutionPayloadV1 {
|
||||
fn from(value: EthBuiltPayload) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user