Skip to content

Commit

Permalink
fix: eth_simulateV1 serde (alloy-rs#1345)
Browse files Browse the repository at this point in the history
fix: eth_simulateV1 serce
  • Loading branch information
klkvr authored and lwedge99 committed Oct 8, 2024
1 parent e3b698d commit b9d8e10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/rpc-types-eth/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct SimBlock {
#[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))]
pub state_overrides: Option<StateOverride>,
/// A vector of transactions to be simulated.
#[cfg_attr(feature = "serde", serde(default))]
pub calls: Vec<TransactionRequest>,
}

Expand Down Expand Up @@ -69,7 +70,7 @@ pub struct SimulatedBlock<B = Block> {
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
pub struct SimCallResult {
/// The raw bytes returned by the transaction.
pub return_value: Bytes,
pub return_data: Bytes,
/// Logs generated during the execution of the transaction.
#[cfg_attr(feature = "serde", serde(default))]
pub logs: Vec<Log>,
Expand All @@ -93,6 +94,7 @@ pub struct SimCallResult {
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
pub struct SimulatePayload {
/// Array of block state calls to be executed at specific, optional block/state.
#[cfg_attr(feature = "serde", serde(default))]
pub block_state_calls: Vec<SimBlock>,
/// Flag to determine whether to trace ERC20/ERC721 token transfers within transactions.
#[cfg_attr(feature = "serde", serde(default))]
Expand Down

0 comments on commit b9d8e10

Please sign in to comment.