diff --git a/docs/deploying/deploy-smart-contracts.mdx b/docs/deploying/deploy-smart-contracts.mdx index b381c4b..49bda06 100644 --- a/docs/deploying/deploy-smart-contracts.mdx +++ b/docs/deploying/deploy-smart-contracts.mdx @@ -12,11 +12,11 @@ Scaffold-Stark 2 comes with a selection of predefined networks. They are `Devnet Here are the [Starknet docs](https://docs.starknet.io/documentation/tools/api-services/) for information on Seplia networks providers. -## 2. Use prefunded accounts and add one of them to deploy the contract(s) from. +## 2. Use pre-funded accounts and add one of them to deploy the contract(s) from. The deployer account is the account that will deploy your contracts. Additionally, the deployer account will be used to execute any function calls that are part of your deployment script. -You can use any prefunded account / private key or add your crypto wallet's private key. +You can use any pre-funded account / private key or add your crypto wallet's private key. You can also manually set your own private key, you will need to add `PRIVATE_KEY_SEPOLIA=yourWalletPrivateKey` to the `packages/snfoundry/.env` file. diff --git a/docs/quick-start/customize-your-own-dApp.mdx b/docs/quick-start/customize-your-own-dApp.mdx index 780f477..8506c0e 100644 --- a/docs/quick-start/customize-your-own-dApp.mdx +++ b/docs/quick-start/customize-your-own-dApp.mdx @@ -56,7 +56,7 @@ Let's dive into the main characteristics and how you can leverage them for your #### Unit Testing -Scaffold Stark 2 comes with Vitest to perform unit testing and integration testing. Feel free to write unit tests should they are required and you can run them with the following commands: +Scaffold Stark 2 comes with Vitest to perform unit testing and integration testing. Feel free to write unit tests should they be required and you can run them with the following commands: - `yarn test:nextjs` to run regular tests with watch mode - `yarn test:nextjs run` to run regular tests without watch mode diff --git a/docs/recipes/ReadUintFromContract.md b/docs/recipes/ReadUintFromContract.md index 152fcc6..5243afa 100644 --- a/docs/recipes/ReadUintFromContract.md +++ b/docs/recipes/ReadUintFromContract.md @@ -100,7 +100,7 @@ export const GreetingsCount = () => { }; ``` -In the line `const {data: totalCounter} = useScaffoldReadContract({...})` we are using [destructuring asssignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) to assign `data` to a new name `totalCounter`. +In the line `const {data: totalCounter} = useScaffoldReadContract({...})` we are using [destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) to assign `data` to a new name `totalCounter`. In the contract, `totalCounter` returns an `uint` value, which is represented as a [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) in javascript and can be converted to a readable string using `.toString()`. diff --git a/docs/recipes/WriteToContractWriteAsyncButton.md b/docs/recipes/WriteToContractWriteAsyncButton.md index d829624..176ba42 100644 --- a/docs/recipes/WriteToContractWriteAsyncButton.md +++ b/docs/recipes/WriteToContractWriteAsyncButton.md @@ -4,7 +4,7 @@ title: Write to contract with writeContractAsync button description: Learn how to create a button that executes the writeContractAsync function to interact with a smart contract. --- -# Write to a Contract with `sendAsync` button using then `useScaffoldWriteContract` hook. +# Write to a Contract with `sendAsync` button using the `useScaffoldWriteContract` hook. This recipe demonstrates how to create a button for contract interaction using the `useScaffoldWriteContract` hooks from the Scaffold-Stark 2 hooks.