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 typos and demo code in docs #995

Merged
merged 4 commits into from
Sep 20, 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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Exploring them separately will highlight the functionality provided by the prepa

:::caution

In this module, you'll'll extend the onchain app you build in the previous module, [Reading and Displaying Data].
In this module, you'll extend the onchain app you build in the previous module, [Reading and Displaying Data].

:::

Expand All @@ -54,7 +54,7 @@ You'll need to know how many tokens the user has to be able to make decisions on

You'll need the user's address to use in `args`, which you can conveniently get from the [`useAccount`] hook using the pattern below.

```tsx:
```tsx
const { data: balanceData, queryKey: balanceQueryKey } =
useReadContract({
address: contractData.address as `0x${string}`,
Expand Down Expand Up @@ -130,8 +130,8 @@ const handleClaimClick = () => {
return (
<div>
<p>{'Token Balance: ' + tokenBalance}</p>
<button disabled={claimIsLoading} onClick={handleClaimClick}>
{claimIsLoading ? 'Complete In Wallet' : 'Claim Tokens'}
<button disabled={claimIsPending} onClick={handleClaimClick}>
{claimIsPending ? 'Complete In Wallet' : 'Claim Tokens'}
</button>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/tutorials/docs/4_intro-to-foundry-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ src = 'contracts'
In order to compile the project, simply run:

```bash
forge build:
forge build
```

## Setting up Foundry with Base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Chainlink provides a number of price feeds for Base. For a list of available pri
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

contract DataConsumerV3 {
AggregatorV3Interface internal priceFeed;
Expand Down
Loading