Skip to content

Commit

Permalink
Merge pull request #34 from nnsW3/docs-fix-spelling-issues
Browse files Browse the repository at this point in the history
fix link and typos
  • Loading branch information
jrcarlos2000 authored Oct 10, 2024
2 parents d24897a + f6f2e82 commit 7c883ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/deploying/deploy-smart-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/quick-start/customize-your-own-dApp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/ReadUintFromContract.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.

Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/WriteToContractWriteAsyncButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 7c883ea

Please sign in to comment.