Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
update windup #REDME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJonaseb11 committed Oct 26, 2024
1 parent e377b36 commit d8e093b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ In an industry often plagued by issues such as fraud, lack of traceability, and
## Installation
```sh
### Blockchain section
# 1. Option1 - Initialize a scaffold-eth2 project
npx create-eth@latest
cd project_name

## 2. Option2 - Start right away from the scaffold-eth2 repo
git clone https://github.com/scaffold-eth/scaffold-eth-2.git
cd scaffold-eth-2
yarn install

## Initialize a local blockchain
# In the first terminal
yarn chain
# In the second terminal - deploy contracts
yarn deploy
# In the third terminal - start app
yarn start

# Run tests
cd packages/hardhat/test
yarn hardhat:test

### Frontend section

Expand Down
4 changes: 4 additions & 0 deletions packages/nextjs/app/(app)/account/page.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import { Address } from "viem";
import { useAccount, useDisconnect } from "wagmi";
import { Balance } from "~~/components/scaffold-eth";
import { AddressQRCodeModal } from "~~/components/scaffold-eth/RainbowKitCustomConnectButton/AddressQRCodeModal";
// import { AddressInput } from "~~/components/scaffold-eth";
// import { Address } from "~~/components/scaffold-eth";

export const AccountPageClient: React.FC = () => {
const { address: connectedAddress } = useAccount();
const { disconnect } = useDisconnect();
// onst [address, setAddress] = useState("");

return (
<div>
<AddressInput onChange={setAddress} value={address} placeholder="Input your address" />
<AddressQRCodeModal address={connectedAddress as Address} modalId="qr-code modal" />
<div className="flex justify-center flex-col items-center">
<p className="font-medium text-lg">Account Balance</p>
Expand Down

0 comments on commit d8e093b

Please sign in to comment.