Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed May 15, 2024
1 parent db31f79 commit 5e79e29
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 8 deletions.
22 changes: 19 additions & 3 deletions docs/guides/docs/contract-quickstart/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ Getting started with Fuel as a smart contract developer is as simple as:
commentType="{/*"
/>

### Devnet toolchain

To use the `devnet` toolchain, run the commands below:

```sh
fuelup self update
fuelup toolchain install devnet
fuelup default devnet
```

## Generating a counter contract

Run the command below to generate a counter contract in Sway:
Expand All @@ -60,16 +70,22 @@ The contract will be in the `src/main.sw` file.

## Building and deploying the contract

To build a contract, inside the `counter-contract` folder you can run:
To build a contract, move inside the `counter-contract` folder:

```sh
cd counter-contract
```

Next, run the `forc build` command:

```sh
forc build
```

To deploy the contract to the testnet, you can run:
To deploy the contract to the devnet, you can run:

```sh
forc deploy --node-url https://devnet.fuel.network/v1/graphql
forc deploy --testnet
```

<TextImport
Expand Down
14 changes: 12 additions & 2 deletions docs/guides/docs/counter-dapp/building-a-smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,25 @@ parent:
commentType="{/*"
/>

### Already have `fuelup` installed?
### Devnet toolchain

To use the `devnet` toolchain, run the commands below:

```sh
fuelup self update
fuelup toolchain install devnet
fuelup default devnet
```

{/* ### Already have `fuelup` installed?
If you already have `fuelup` installed, run the commands below to make sure you are on the most up-to-date toolchain.
```sh
fuelup self update
fuelup update
fuelup default latest
```
``` */}

## Your First Sway Project

Expand Down
18 changes: 17 additions & 1 deletion docs/guides/docs/frontend-quickstart/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ Getting started with Fuel as a frontend or fullstack developer is as simple as:
commentType="{/*"
/>

### Devnet toolchain

To use the `devnet` toolchain, run the commands below:

```sh
fuelup self update
fuelup toolchain install devnet
fuelup default devnet
```

## Generating a counter dapp

You can generate a full-stack counter dapp in seconds with the `create fuels` CLI:
Expand All @@ -60,7 +70,13 @@ npm create fuels

## Running the project locally

In the project directory, run the following command to start a local development node:
Move into the project directory. Assuming you named the project `my-fuel-project`, you can run:

```sh
cd my-fuel-project
```

Next, run the following command to start a local development node:

<CodeTabs>

Expand Down
1 change: 0 additions & 1 deletion docs/intro/what-is-fuel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ cardsInfo={[
### Network

Fuel is currently live on testnet only.
The latest testnet network is the {props.fuelTestnetInlineCode} testnet.

<CardSection
versionSet={props.versionSet}
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-links/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function getSidebarName(key) {
newKey = 'Specifications';
break;
case 'sway-libs':
newKey = 'Sway Libs';
newKey = 'Sway Libraries';
break;
default:
}
Expand Down

0 comments on commit 5e79e29

Please sign in to comment.