Skip to content

Commit

Permalink
create reactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Jul 30, 2024
1 parent 1022ddb commit eed4c01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/evm/core/src/backend/fork_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ impl CachedForkType {
let is_zk_url = foundry_common::provider::try_get_http_provider(fork_url)
.map(|provider| {
let is_zk_url = std::thread::spawn(move || {
futures::executor::block_on(provider.raw_request("zks_L1ChainId".into(), ()))
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
.block_on(provider.raw_request("zks_L1ChainId".into(), ()))
.map(|_: String| true)
.unwrap_or_default()
})
Expand Down

0 comments on commit eed4c01

Please sign in to comment.