Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix link and typos #34

Merged
merged 4 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading