Skip to content

Commit

Permalink
fix: example support anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlcibiades committed Nov 18, 2023
1 parent e5862a5 commit 246f732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rust/examples/maker/maker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ async fn run<P: JsonRpcClient + 'static>(
}

let chain_id: U256 = quote.chain_id.clone().unwrap().into();
if chain_id != U256::from(421613_u64) {
warn!("RFQ request was not on the testnet chain. Ignoring the request");
if chain_id != U256::from(421613_u64) && chain_id != U256::from(31337_u64) {
warn!("Chain ID: {chain_id:?} is not supported/not a testnet. Ignoring the request");
continue;
}

Expand Down

0 comments on commit 246f732

Please sign in to comment.