-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sarah Schwartz <[email protected]>
- Loading branch information
1 parent
5f960e3
commit 045c711
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
Submodule fuelup
updated
8 files
+1 −0 | .github/workflows/gh-pages-meta.yml | |
+4 −3 | Cargo.lock | |
+2 −1 | Cargo.toml | |
+3 −3 | README.md | |
+2 −2 | docs/src/installation/index.md | |
+1 −0 | src/channel.rs | |
+244 −137 | src/toolchain.rs | |
+11 −9 | tests/toolchain.rs |
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 |
---|---|---|
|
@@ -46,7 +46,7 @@ npm install [email protected] @fuel-wallet/[email protected] @fuel-wallet/[email protected] | |
|
||
## Generate contract types | ||
|
||
The `fuels init` command generates a `fuels.config.json` file that is used by the SDK to generate contract types. | ||
The `fuels init` command generates a `fuels.config.ts` file that is used by the SDK to generate contract types. | ||
Use the `contracts` flag to define where your contract folder is located, and the `output` flag to define where you want the generated files to be created. | ||
|
||
Run the command below in your frontend folder to generate the config file: | ||
|
@@ -63,7 +63,7 @@ action={{ | |
npx fuels init --contracts ../contract/ --output ./src/contracts | ||
``` | ||
|
||
Now that you have a `fuels.config.json` file, you can use the `fuels build` command to rebuild your contract and generate types. | ||
Now that you have a `fuels.config.ts` file, you can use the `fuels build` command to rebuild your contract and generate types. | ||
Running this command will interpret the output ABI JSON from your contract and generate the correct TypeScript definitions. | ||
If you see the folder `fuel-project/counter-contract/out` you will be able to see the ABI JSON there. | ||
|
||
|
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
Submodule fuel-specs
updated
5 files
+2 −0 | src/fuel-vm/index.md | |
+16 −24 | src/fuel-vm/instruction-set.md | |
+3 −10 | src/tx-format/input.md | |
+1 −3 | src/tx-format/output.md | |
+1 −3 | src/tx-format/transaction.md |