Skip to content

Commit

Permalink
Add OperationType::OpEofCreate (alloy-rs#1327)
Browse files Browse the repository at this point in the history
Add OperationType::OpEofCreate
  • Loading branch information
emhane authored and lwedge99 committed Oct 8, 2024
1 parent ffdfd61 commit 04dd39b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rpc-types-trace/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub enum OperationType {
OpCreate = 2,
/// Operation Create2
OpCreate2 = 3,
/// Operation EofCreate
OpEofCreate = 4,
}

// Implement Serialize for OperationType
Expand All @@ -46,6 +48,7 @@ impl<'de> Deserialize<'de> for OperationType {
1 => Ok(Self::OpSelfDestruct),
2 => Ok(Self::OpCreate),
3 => Ok(Self::OpCreate2),
4 => Ok(Self::OpEofCreate),
other => Err(de::Error::invalid_value(
Unexpected::Unsigned(other as u64),
&"a valid OperationType",
Expand Down

0 comments on commit 04dd39b

Please sign in to comment.