Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yash251 committed Dec 21, 2024
1 parent 00b9077 commit fcf58b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ If you find anything that is confusing or can be improved in an existing documen
When **adding a new page**, you need to fork the repository, create a new branch, and make all changes necessary in your repository. Once you are done with your changes, create a PR to Scaffold-ETH 2 Documentation repository.

Add the new pages to the `docs` folder, placing them in the specific directory where you want the page to be shown.
**Siderbar** link will get **autogenerated** under your specific folder, in the **position** that you specify in your document header. Example:
**Sidebar** link will get **autogenerated** under your specific folder, in the **position** that you specify in your document header. Example:

```markdown
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/useTransactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can pass in anything that is a valid parameter to [Viem's `sendTransaction`

### useTransactor

- The callback function that is used to inialize the UI feedback flow.
- The callback function that is used to initialize the UI feedback flow.

### callback function

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

0 comments on commit fcf58b8

Please sign in to comment.