-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f71412
commit f175d70
Showing
13 changed files
with
187 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ action={{ | |
/> | ||
|
||
```sh | ||
npm install fuels@0.79.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected] | ||
npm install fuels@0.82.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected] | ||
``` | ||
|
||
## Generate contract types | ||
|
@@ -60,7 +60,7 @@ action={{ | |
/> | ||
|
||
```sh | ||
npx fuels init --contracts ../contract/ --output ./src/contracts | ||
npx fuels@0.82.0 init --contracts ../contract/ --output ./src/contracts | ||
``` | ||
|
||
Now that you have a `fuels.config.ts` file, you can use the `fuels build` command to rebuild your contract and generate types. | ||
|
@@ -88,7 +88,7 @@ action={{ | |
/> | ||
|
||
```sh | ||
npx fuels build | ||
npx fuels@0.82.0 build | ||
``` | ||
|
||
A successful process should print and output like the following: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ action={{ | |
<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}> | ||
|
||
```sh | ||
npm install fuels@0.79.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected] | ||
npm install fuels@0.82.0 @fuels/[email protected] @fuels/[email protected] @tanstack/[email protected] | ||
``` | ||
|
||
</ConditionalContent> | ||
|
@@ -159,7 +159,7 @@ action={{ | |
/> | ||
|
||
```sh | ||
npx fuels init --contracts ../counter-contract/ --output ./src/sway-api | ||
npm fuels init --contracts ../counter-contract/ --output ./src/sway-api | ||
``` | ||
|
||
Now that you have a `fuels.config.ts` file, you can use the `fuels build` command to rebuild your contract and generate types. | ||
|
@@ -177,7 +177,7 @@ action={{ | |
/> | ||
|
||
```sh | ||
npx fuels build | ||
npx fuels@0.82.0 build | ||
``` | ||
|
||
A successful process should print and output like the following: | ||
|
@@ -210,7 +210,7 @@ action={{ | |
/> | ||
|
||
```console | ||
npx fuels typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts | ||
npx fuels@0.67.0 typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts | ||
``` | ||
|
||
A successful process should print and output like the following: | ||
|
@@ -371,7 +371,7 @@ Once you're ready to redeploy your contract to the testnet, here are the steps y | |
|
||
<ConditionalContent versionSet={props.versionSet} showForVersions={['default', 'nightly']}> | ||
|
||
- In your frontend directory, re-run this command: `npx fuels build`. | ||
- In your frontend directory, re-run this command: `npx fuels@0.82.0 build`. | ||
- In your contract directory, redeploy the contract by running this command and following the same steps as above to sign the transaction with your wallet: `forc deploy --testnet`. | ||
- In your frontend directory, update the contract ID in your `App.tsx` file. | ||
</ConditionalContent> | ||
|
@@ -380,7 +380,7 @@ Once you're ready to redeploy your contract to the testnet, here are the steps y | |
|
||
- In your contract directory, run `forc build` | ||
- In your contract directory, redeploy the contract by running this command and following the same steps as above to sign the transaction with your wallet: `forc deploy --node-url https://beta-4.fuel.network/graphql --gas-price 1` | ||
- In your frontend directory, re-run this command: `npx fuels typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts` | ||
- In your frontend directory, re-run this command: `npx fuels@0.67.0 typegen -i ../counter-contract/out/debug/*-abi.json -o ./src/contracts` | ||
- In your frontend directory, update the contract ID in your `App.tsx` file | ||
</ConditionalContent> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.