File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ async fn main() -> Result<()> {
8
8
// Spin up a forked Anvil node.
9
9
// Ensure `anvil` is available in $PATH.
10
10
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc" ;
11
- let provider = ProviderBuilder :: new ( ) . on_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
11
+ let provider = ProviderBuilder :: new ( ) . connect_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
12
12
13
13
// Get node info using the Anvil API.
14
14
let info = provider. anvil_node_info ( ) . await ?;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ async fn main() -> Result<()> {
8
8
// Spin up a local Anvil node.
9
9
// Ensure `anvil` is available in $PATH.
10
10
let provider =
11
- ProviderBuilder :: new ( ) . on_anvil_with_config ( |anvil| anvil. block_time ( 1 ) . chain_id ( 1337 ) ) ;
11
+ ProviderBuilder :: new ( ) . connect_anvil_with_config ( |anvil| anvil. block_time ( 1 ) . chain_id ( 1337 ) ) ;
12
12
13
13
// Get node info using the Anvil API.
14
14
let info = provider. anvil_node_info ( ) . await ?;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async fn main() -> Result<()> {
23
23
// Spin up a forked Anvil node.
24
24
// Ensure `anvil` is available in $PATH.
25
25
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc" ;
26
- let provider = ProviderBuilder :: new ( ) . on_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
26
+ let provider = ProviderBuilder :: new ( ) . connect_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
27
27
28
28
// Create an instance of the WETH contract.
29
29
let iweth = IERC20 :: new ( WETH_ADDR , provider. clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async fn main() -> Result<()> {
27
27
// Spin up a forked Anvil node.
28
28
// Ensure `anvil` is available in $PATH.
29
29
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc" ;
30
- let provider = ProviderBuilder :: new ( ) . on_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
30
+ let provider = ProviderBuilder :: new ( ) . connect_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
31
31
32
32
// Create a call to get the latest answer from the Chainlink ETH/USD feed.
33
33
let call = latestAnswerCall { } . abi_encode ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ async fn main() -> Result<()> {
15
15
// Spin up a forked Anvil node.
16
16
// Ensure `anvil` is available in $PATH.
17
17
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc" ;
18
- let provider = ProviderBuilder :: new ( ) . on_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
18
+ let provider = ProviderBuilder :: new ( ) . connect_anvil_with_config ( |anvil| anvil. fork ( rpc_url) ) ;
19
19
20
20
// Hash of the tx we want to trace.
21
21
let hash = b256 ! ( "97a02abf405d36939e5b232a5d4ef5206980c5a6661845436058f30600c52df7" ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ async fn main() -> Result<()> {
24
24
25
25
// Create a provider with the wallet.
26
26
let provider =
27
- ProviderBuilder :: new ( ) . wallet ( signer) . on_anvil_with_config ( |anvil| anvil. block_time ( 1 ) ) ;
27
+ ProviderBuilder :: new ( ) . wallet ( signer) . connect_anvil_with_config ( |anvil| anvil. block_time ( 1 ) ) ;
28
28
29
29
// Build a transaction to send 100 wei from Alice to Vitalik.
30
30
// The `from` field is automatically filled to the first signer's address (Alice).
You can’t perform that action at this time.
0 commit comments