Skip to content

Commit

Permalink
fix: add anvil support
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlcibiades committed Dec 15, 2023
1 parent 5471913 commit 2d14378
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 @@ -249,7 +249,7 @@ async fn run<P: JsonRpcClient + 'static>(
}

let chain_id: U256 = quote.chain_id.clone().unwrap().into();
if chain_id != U256::from(421613_u64) {
if chain_id != U256::from(421613_u64) || chain_id != U256::from(31337_u64) {
warn!("RFQ request was not on the testnet chain. Ignoring the request");
continue;
}
Expand Down Expand Up @@ -288,7 +288,7 @@ async fn run<P: JsonRpcClient + 'static>(
}

let chain_id: U256 = quote.chain_id.clone().unwrap().into();
if chain_id != U256::from(421613_u64) {
if chain_id != U256::from(421613_u64) || chain_id != U256::from(31337_u64) {
warn!("Soft Quote request was not on the testnet chain. Ignoring the request");
continue;
}
Expand Down

0 comments on commit 2d14378

Please # to comment.