Skip to content

Commit fafc062

Browse files
committed
updates per pr review
1 parent 93dcf05 commit fafc062

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

consensus/types/src/execution_payload_envelope.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,6 @@ impl<'a, E: EthSpec> ExecutionPayloadEnvelopeRef<'a, E> {
7272
}
7373
}
7474

75-
impl<E: EthSpec> ExecutionPayloadEnvelope<E> {
76-
/// Custom SSZ decoder that takes a `ForkName` as context.
77-
pub fn from_ssz_bytes_for_fork(bytes: &[u8], fork_name: ForkName) -> Result<Self, DecodeError> {
78-
match fork_name {
79-
ForkName::Gloas => ExecutionPayloadEnvelopeGloas::from_ssz_bytes(bytes)
80-
.map(ExecutionPayloadEnvelope::Gloas),
81-
_ => Err(DecodeError::BytesInvalid(format!(
82-
"ExecutionPayloadEnvelope does not support fork {fork_name:?}"
83-
))),
84-
}
85-
}
86-
}
87-
8875
impl<'de, E: EthSpec> ContextDeserialize<'de, ForkName> for ExecutionPayloadEnvelope<E> {
8976
fn context_deserialize<D>(deserializer: D, context: ForkName) -> Result<Self, D::Error>
9077
where

0 commit comments

Comments
 (0)