Skip to content

Commit f4d6789

Browse files
authored
chore: update arb tests, use different rpc url (#12321)
* chore: use drpc arb * Use other
1 parent 0cf4272 commit f4d6789

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

crates/anvil/tests/it/fork.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ async fn test_arbitrum_fork_dev_balance() {
12221222
// <https://github.com/foundry-rs/foundry/issues/9152>
12231223
#[tokio::test(flavor = "multi_thread")]
12241224
async fn test_arb_fork_mining() {
1225-
let fork_block_number = 266137031u64;
1225+
let fork_block_number = 394274860u64;
12261226
let fork_rpc = next_rpc_endpoint(NamedChain::Arbitrum);
12271227
let (api, _handle) = spawn(
12281228
fork_config()

crates/test-utils/src/rpc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fn next_url_inner(is_ws: bool, chain: NamedChain) -> String {
192192
if !rpc_url.is_empty() {
193193
return rpc_url;
194194
}
195-
return "https://arb1.arbitrum.io/rpc".to_string();
195+
return "https://arbitrum-one-rpc.publicnode.com".to_string();
196196
}
197197

198198
let reth_works = true;
@@ -204,6 +204,7 @@ fn next_url_inner(is_ws: bool, chain: NamedChain) -> String {
204204
let network = match chain {
205205
Mainnet => "ethereum",
206206
Polygon => "polygon",
207+
Arbitrum => "arbitrum",
207208
Sepolia => "sepolia",
208209
_ => "",
209210
};

testdata/default/repros/Issue4640.t.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import "utils/Test.sol";
66
// https://github.com/foundry-rs/foundry/issues/4640
77
contract Issue4640Test is Test {
88
function testArbitrumBlockNumber() public {
9-
// <https://arbiscan.io/block/75219831>
10-
vm.createSelectFork("arbitrum", 75219831);
9+
// <https://arbiscan.io/block/394276729>
10+
vm.createSelectFork("arbitrum", 394276729);
1111
// L1 block number
12-
assertEq(block.number, 16939475);
12+
assertEq(block.number, 23675778);
1313
}
1414
}

0 commit comments

Comments
 (0)