Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: eth_simulateV1 #1289

Merged
merged 3 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions crates/rpc-types-eth/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,22 @@ pub struct BlockOverrides {
)]
pub gas_limit: Option<u64>,
/// Overrides the coinbase address of the block.
#[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))]
#[cfg_attr(
feature = "serde",
serde(default, skip_serializing_if = "Option::is_none", alias = "feeRecipient")
)]
pub coinbase: Option<Address>,
/// Overrides the prevrandao of the block.
#[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))]
#[cfg_attr(
feature = "serde",
serde(default, skip_serializing_if = "Option::is_none", alias = "prevRandao")
)]
pub random: Option<B256>,
/// Overrides the basefee of the block.
#[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))]
#[cfg_attr(
feature = "serde",
serde(default, skip_serializing_if = "Option::is_none", alias = "baseFeePerGas")
)]
pub base_fee: Option<U256>,
/// A dictionary that maps blockNumber to a user-defined hash. It could be queried from the
/// solidity opcode BLOCKHASH.
Expand Down
1 change: 1 addition & 0 deletions crates/rpc-types-eth/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pub struct SimulatePayload {
#[cfg_attr(feature = "serde", serde(default))]
pub validation: bool,
/// Flag to decide if full transactions should be returned instead of just their hashes.
#[cfg_attr(feature = "serde", serde(default))]
pub return_full_transactions: bool,
}

Expand Down
Loading