diff --git a/content/cookbook/development/subscribing-events.md b/content/cookbook/development/subscribing-events.md index 2fc52b7f2..fc498b188 100644 --- a/content/cookbook/development/subscribing-events.md +++ b/content/cookbook/development/subscribing-events.md @@ -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",