Skip to content
Open
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
7 changes: 6 additions & 1 deletion bindings/tests/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ async fn pa_instance(
) -> protocol_adapter::ProtocolAdapter::ProtocolAdapterInstance<DynProvider> {
let rpc_url = alchemy_url(chain).expect("Couldn't get RPC URL for chain");

// These tests need a forked node (the protocol adapter constructor calls into
// the risc0 verifier router, and `execute` sends a real transaction). Forking
// waits for anvil to fetch fork state from the RPC before it reports ready, so
// raise the startup timeout well above anvil's 10s default to avoid `Timeout`
// panics on slow RPCs or as more chains are added.
let provider = ProviderBuilder::new()
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url))
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url).timeout(120_000))
.expect("Couldn't create anvil provider");
protocol_adapter(&provider.erased())
.await
Expand Down
Loading