diff --git a/docs/fuelup b/docs/fuelup index 2b60ebea..41050ed7 160000 --- a/docs/fuelup +++ b/docs/fuelup @@ -1 +1 @@ -Subproject commit 2b60ebeacef5162ca76ccd0c460d647045882b57 +Subproject commit 41050ed73658c56b843b8d185c6ec74b4f7209d2 diff --git a/docs/guides/docs/intro-to-sway/typescript-sdk.mdx b/docs/guides/docs/intro-to-sway/typescript-sdk.mdx index 3101a236..42e5854f 100644 --- a/docs/guides/docs/intro-to-sway/typescript-sdk.mdx +++ b/docs/guides/docs/intro-to-sway/typescript-sdk.mdx @@ -46,7 +46,7 @@ npm install fuels@0.73.0 @fuel-wallet/sdk@0.15.2 @fuel-wallet/react@0.15.2 ## 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. diff --git a/docs/guides/docs/quickstart/building-a-frontend.mdx b/docs/guides/docs/quickstart/building-a-frontend.mdx index 65ea135a..9b9c776a 100644 --- a/docs/guides/docs/quickstart/building-a-frontend.mdx +++ b/docs/guides/docs/quickstart/building-a-frontend.mdx @@ -151,7 +151,7 @@ action={{ ## 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: @@ -168,7 +168,7 @@ action={{ npx fuels init --contracts ../counter-contract/ --output ./src/sway-api ``` -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. diff --git a/docs/nightly/fuel-specs b/docs/nightly/fuel-specs index 1eafbe26..2742f30f 160000 --- a/docs/nightly/fuel-specs +++ b/docs/nightly/fuel-specs @@ -1 +1 @@ -Subproject commit 1eafbe265f0e46e0c04d78fbc5c3f2c17fc1e975 +Subproject commit 2742f30f963f4bcd9b165165606f51a218b812ee diff --git a/docs/nightly/fuels-ts b/docs/nightly/fuels-ts index d9a7729c..95a3280d 160000 --- a/docs/nightly/fuels-ts +++ b/docs/nightly/fuels-ts @@ -1 +1 @@ -Subproject commit d9a7729c549253abcae64ab394c896e2d95bfe5a +Subproject commit 95a3280da07e2a7b286f64f875878401e24b9f05