Skip to content

Commit

Permalink
Merge branch 'master' into chore/use-fuel-asm-instead-vm
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e authored Jul 11, 2023
2 parents 634155e + 247bb95 commit 31819cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docs/src/connecting/external-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ We can interact with the `Testnet` node by using the following example.
```rust,ignore
{{#include ../../../examples/providers/src/lib.rs:connect_to_testnet}}
```
>
> For detailed information about various testnet networks and their optimal toolchain configurations for your project, please visit the following link:
>
> [networks](https://fuelbook.fuel.network/master/networks/networks.html)
In the code example, we connected a new provider to the Testnet node and created a new wallet from a private key.

> **Note:** New wallets on the Testnet will not have any assets! They can be obtained by providing the wallet address to the faucet at
>
>[faucet-beta-2.fuel.network](https://faucet-beta-2.fuel.network)
>[faucet-beta-3.fuel.network](https://faucet-beta-3.fuel.network)
>
> Once the assets have been transferred to the wallet, you can reuse it in other tests by providing the private key!
>
> In addition to the faucet, there is a block explorer for the Tesnet at
>
> [block-explorer](https://fuellabs.github.io/block-explorer-v2)


If you want to connect to another node just change the url or IP and port. For example, to connect to a local node that was created with `fuel-core` you can use:

```rust,ignore
Expand Down
2 changes: 1 addition & 1 deletion examples/providers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod tests {
// Create a provider pointing to the testnet.
// This example will not work as the testnet does not support the new version of fuel-core
// yet
let provider = Provider::connect("node-beta-2.fuel.network").await.unwrap();
let provider = Provider::connect("beta-3.fuel.network").await.unwrap();

// Setup a private key
let secret =
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/tests/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ async fn testnet_hello_world() -> Result<()> {
));

// Create a provider pointing to the testnet.
let provider = Provider::connect("node-beta-2.fuel.network").await.unwrap();
let provider = Provider::connect("beta-3.fuel.network").await.unwrap();

// Setup the private key.
let secret =
Expand Down

0 comments on commit 31819cd

Please sign in to comment.