From 6c9272a528f6b40a2d11b33a61683e31149f0174 Mon Sep 17 00:00:00 2001 From: Leon Date: Sat, 21 Dec 2024 20:30:04 +0800 Subject: [PATCH] fix: Update SCDO accountChanged event parameters --- packages/kit-bg/src/providers/ProviderApiScdo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/kit-bg/src/providers/ProviderApiScdo.ts b/packages/kit-bg/src/providers/ProviderApiScdo.ts index f9f0b9cca41..63cf0e38357 100644 --- a/packages/kit-bg/src/providers/ProviderApiScdo.ts +++ b/packages/kit-bg/src/providers/ProviderApiScdo.ts @@ -39,9 +39,7 @@ class ProviderApiScdo extends ProviderApiBase { }); const result = { method: 'wallet_events_accountsChanged', - params: { - accounts, - }, + params: accounts?.[0] ?? '', }; return result; };