Skip to content

Commit 2ca027e

Browse files
authored
fix: rename AnchorWallet to Wallet (#288)
* fix: rename type * fix
1 parent 090969a commit 2ca027e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/price-feeds/use-real-time-data/solana.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ The `PythSolanaReceiver` class provides a method for deriving this information:
101101
```typescript copy
102102
import { PythSolanaReceiver } from "@pythnetwork/pyth-solana-receiver";
103103

104-
// You will need a Connection from @solana/web3.js and an AnchorWallet to create
104+
// You will need a Connection from @solana/web3.js and a Wallet from @coral-xyz/anchor to create
105105
// the receiver.
106106
const connection: Connection;
107-
const wallet: AnchorWallet;
107+
const wallet: Wallet;
108108
const pythSolanaReceiver = new PythSolanaReceiver({ connection, wallet });
109109

110110
// There are up to 2^16 different accounts for any given price feed id.
@@ -165,10 +165,10 @@ The `PythSolanaReceiver` class in `@pythnetwork/pyth-solana-receiver` provides a
165165
```typescript copy
166166
import { PythSolanaReceiver } from "@pythnetwork/pyth-solana-receiver";
167167

168-
// You will need a Connection from @solana/web3.js and an AnchorWallet to create
168+
// You will need a Connection from @solana/web3.js and a Wallet from @coral-xyz/anchor to create
169169
// the receiver.
170170
const connection: Connection;
171-
const wallet: AnchorWallet;
171+
const wallet: Wallet;
172172
const pythSolanaReceiver = new PythSolanaReceiver({ connection, wallet });
173173

174174
// Set closeUpdateAccounts: true if you want to delete the price update account at

0 commit comments

Comments
 (0)