Skip to content

Commit

Permalink
Downgrade to Merge; use correct guest for anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
intoverflow committed Apr 18, 2024
1 parent e79c5f4 commit 9c01ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ async fn main() -> Result<()> {
Network::Anvil => {
let rpc_url = build_args.eth_rpc_url.clone();
(
ETH_BLOCK_ID,
ANVIL_BLOCK_ID,
build::build_block::<EthereumStrategy>(
&cli,
rpc_url,
&ANVIL_CHAIN_SPEC,
ETH_BLOCK_ELF,
ANVIL_BLOCK_ELF,
)
.await?,
)
Expand Down
4 changes: 2 additions & 2 deletions lib/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub static ETH_MAINNET_CHAIN_SPEC: Lazy<ChainSpec> = Lazy::new(|| ChainSpec {
/// Anvil default chain spec
pub static ANVIL_CHAIN_SPEC: Lazy<ChainSpec> = Lazy::new(|| ChainSpec {
chain_id: 31337,
max_spec_id: SpecId::SHANGHAI,
hard_forks: BTreeMap::from([(SpecId::SHANGHAI, ForkCondition::Block(0))]),
max_spec_id: SpecId::CANCUN,
hard_forks: BTreeMap::from([(SpecId::MERGE, ForkCondition::Block(0))]),
gas_constants: BTreeMap::from([(SpecId::LONDON, ETH_MAINNET_EIP1559_CONSTANTS)]),
});

Expand Down

0 comments on commit 9c01ddf

Please sign in to comment.