File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pages/price-feeds/use-real-time-data Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ The `PythSolanaReceiver` class provides a method for deriving this information:
101
101
``` typescript copy
102
102
import { PythSolanaReceiver } from " @pythnetwork/pyth-solana-receiver" ;
103
103
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
105
105
// the receiver.
106
106
const connection: Connection ;
107
- const wallet: AnchorWallet ;
107
+ const wallet: Wallet ;
108
108
const pythSolanaReceiver = new PythSolanaReceiver ({ connection , wallet });
109
109
110
110
// 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
165
165
``` typescript copy
166
166
import { PythSolanaReceiver } from " @pythnetwork/pyth-solana-receiver" ;
167
167
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
169
169
// the receiver.
170
170
const connection: Connection ;
171
- const wallet: AnchorWallet ;
171
+ const wallet: Wallet ;
172
172
const pythSolanaReceiver = new PythSolanaReceiver ({ connection , wallet });
173
173
174
174
// Set closeUpdateAccounts: true if you want to delete the price update account at
You can’t perform that action at this time.
0 commit comments