Skip to content

Commit

Permalink
Update subscribing-events.md (#591)
Browse files Browse the repository at this point in the history
wallet.publicKey is not a function
  • Loading branch information
WALL-E authored Oct 31, 2024
1 parent a30da83 commit ccf3a4e
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 ccf3a4e

Please sign in to comment.