Skip to content

Commit

Permalink
Get values from config (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ercecan authored Apr 14, 2024
1 parent 500caf9 commit af71041
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/evm/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ impl<C: sov_modules_api::Context> Evm<C> {
receipts_root: EMPTY_RECEIPTS,
withdrawals_root: None,
logs_bloom: Bloom::default(),
difficulty: U256::ZERO,
difficulty: config.difficulty,
number: 0,
gas_limit: config.block_gas_limit,
gas_used: 0,
timestamp: 0,
timestamp: config.timestamp,
mix_hash: B256::default(),
nonce: 0,
nonce: config.nonce,
base_fee_per_gas: Some(config.starting_base_fee),
extra_data: Bytes::default(),
extra_data: config.extra_data.clone(),
// EIP-4844 related fields
// https://github.com/Sovereign-Labs/sovereign-sdk/issues/912
blob_gas_used: None,
Expand Down

0 comments on commit af71041

Please sign in to comment.