Skip to content

Commit

Permalink
Update subscribing-events.md
Browse files Browse the repository at this point in the history
wallet.publicKey is not a function
  • Loading branch information
WALL-E authored Oct 28, 2024
1 parent 7211605 commit 92fe8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/cookbook/development/subscribing-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { clusterApiUrl, Connection, Keypair } from "@solana/web3.js";

// Register a callback to listen to the wallet (ws subscription)
connection.onAccountChange(
wallet.publicKey(),
wallet.publicKey,
(updatedAccountInfo, context) =>
console.log("Updated account info: ", updatedAccountInfo),
"confirmed",
Expand Down

0 comments on commit 92fe8a9

Please sign in to comment.