From f45e71e0187efa2cd9e5a9b9b09a3c9d1c78b422 Mon Sep 17 00:00:00 2001 From: pcbz <73325521+pcbzzz@users.noreply.github.com> Date: Fri, 6 Mar 2026 21:22:28 -0700 Subject: [PATCH] fix(client): proper encoding and data for account notifications --- packages/client/src/client/watchers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/client/watchers.ts b/packages/client/src/client/watchers.ts index 5ece67e..62978e5 100644 --- a/packages/client/src/client/watchers.ts +++ b/packages/client/src/client/watchers.ts @@ -99,7 +99,7 @@ export function createWatchers({ logger: inputLogger, runtime, store }: WatcherD abortController: AbortController, ): Promise { const commitment = config.commitment ?? store.getState().cluster.commitment; - const plan = runtime.rpcSubscriptions.accountNotifications(config.address, { commitment }); + const plan = runtime.rpcSubscriptions.accountNotifications(config.address, { commitment, encoding: 'base64' }); const key = config.address.toString(); setSubscriptionStatus('account', key, { status: 'activating' }); abortController.signal.addEventListener('abort', () => onAbort('account', key)); @@ -113,7 +113,7 @@ export function createWatchers({ logger: inputLogger, runtime, store }: WatcherD const slot = notification.context?.slot ?? null; const entry: AccountCacheEntry = { address: config.address, - data: notification.value?.data, + data: notification.value, error: undefined, executable, fetching: false,