From 231bc92e2cb90ffafa48b0d43f7a829202e10d39 Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Fri, 20 Mar 2026 10:26:41 -0700 Subject: [PATCH] Fix privateKeys reference for syncNetwork call for memory wallets It's important that the reference isn't shared for these functions to avoid mutating this object. It's also more consistent with the other invocations within makeMemoryWalletInner function. --- src/core/account/memory-wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/account/memory-wallet.ts b/src/core/account/memory-wallet.ts index a860827b..7bfb31f8 100644 --- a/src/core/account/memory-wallet.ts +++ b/src/core/account/memory-wallet.ts @@ -132,7 +132,7 @@ export const makeMemoryWalletInner = async ( const doNetworkSync = async (): Promise => { if (engine.syncNetwork != null) { const delay = await engine.syncNetwork({ - privateKeys: unsafeSyncNetwork ? keys : undefined + privateKeys: unsafeSyncNetwork ? privateKeys : undefined }) syncNetworkTask.setDelay(delay) } else {