diff --git a/crates/rpc-types-engine/src/cancun.rs b/crates/rpc-types-engine/src/cancun.rs index 4155d227b40..e1809a1a049 100644 --- a/crates/rpc-types-engine/src/cancun.rs +++ b/crates/rpc-types-engine/src/cancun.rs @@ -43,6 +43,11 @@ impl MaybeCancunPayloadFields { pub fn versioned_hashes(&self) -> Option<&Vec> { self.fields.as_ref().map(|fields| &fields.versioned_hashes) } + + /// Returns a reference to the inner fields. + pub const fn as_ref(&self) -> Option<&CancunPayloadFields> { + self.fields.as_ref() + } } impl From for MaybeCancunPayloadFields {