Skip to content

Commit ecc2fd4

Browse files
committed
Update code snippets lines in create-dapp-viem.md for page.tsx
1 parent 964a376 commit ecc2fd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tutorials/smart-contracts/launch-your-first-project/create-dapp-viem.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ This component handles connecting to the wallet, switching networks if necessary
113113
To use this component in your dApp, replace the existing boilerplate in `app/page.tsx` with the following code:
114114

115115
```typescript title="page.tsx"
116-
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:4:4"
116+
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx::1"
117+
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:2:4"
117118
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:7:20"
118119
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:23:25"
119120
```
@@ -141,7 +142,8 @@ This component reads the `storedNumber` value from the contract and displays it
141142
To reflect this change in your dApp, incorporate this component into the `app/page.tsx` file.
142143

143144
```typescript title="page.tsx"
144-
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:5:5"
145+
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx::1"
146+
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:2:5"
145147
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:7:21"
146148
--8<-- "https://raw.githubusercontent.com/polkadot-developers/polkavm-storage-contract-dapps/refs/tags/v0.0.2/viem-dapp/app/page.tsx:23:25"
147149
```

0 commit comments

Comments
 (0)