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

Commit

Permalink
works
Browse files Browse the repository at this point in the history
  • Loading branch information
URANI committed Mar 28, 2024
1 parent b29cd60 commit 108836c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion demos/frontend/02_non_native_programs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ npx esrun tests/ping.ts

<br>

* Now copy the transaction signature and paste into the search at [the Solana explorer](https://explorer.solana.com/?cluster=devnet) to find details and logs about the transaction, including how many times the program has been pinged.
* Now copy the transaction signature and paste into the search at the [Solana explorer](https://explorer.solana.com/?cluster=devnet) to find details and logs about the transaction, including how many times the program has been pinged.

<br>

Expand Down
14 changes: 12 additions & 2 deletions demos/frontend/03_wallets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<br>

* In ths demo, we will use [@solana/wallet-adapter-base and @solana/wallet-adapter-react.-Adapter](https://github.com/anza-xyz/wallet-adapter) to create the frontend for a transaction approval for last's demo ping program.
* In this demo, we will use [@solana/wallet-adapter-base and @solana/wallet-adapter-react.-Adapter](https://github.com/anza-xyz/wallet-adapter) to create the frontend for a transaction approval for last's demo ping program.

<br>

Expand All @@ -30,7 +30,17 @@

<br>

* Change the settings of your Phantom wallet to "devnet" and then run:

<br>

```
npm install
npm run dev
```
```

<br>

* Open your browser at `localhost:3000` and click `Ping`.

* Check the transaction at the [Solana Explorer](https://explorer.solana.com/?cluster=devnet).
12 changes: 6 additions & 6 deletions demos/frontend/03_wallets/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { NextPage } from 'next'
import styles from '../styles/Home.module.css'
import WalletContextProvider from '../components/WalletContextProvider'
import Head from 'next/head'
import { AppBar } from '../components/AppBar'
import { BalanceDisplay } from '../components/BalanceDisplay'
import { PingButton } from '../components/PingButton'
import Head from 'next/head'
import styles from '../styles/Home.module.css'
import WalletContextProvider from '../components/WalletContextProvider'


const Home: NextPage = (props) => {

return (
<div className={styles.App}>
<Head>
<title>Wallet-Adapter Example</title>
<title>Demo 3: Wallet</title>
<meta
name="description"
content="Wallet-Adapter Example"
content="Demo 3: Wallets"
/>
</Head>
<WalletContextProvider>
Expand Down

0 comments on commit 108836c

Please sign in to comment.