From 5da99d547b1b06997869b3610bc57847aff57fda Mon Sep 17 00:00:00 2001 From: Lionell Briones Date: Thu, 5 Dec 2024 12:15:50 +0800 Subject: [PATCH 1/2] check aaProvider when sending aaConfig to wallet-service --- packages/plugins/wallet-services-plugin/src/plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/wallet-services-plugin/src/plugin.ts b/packages/plugins/wallet-services-plugin/src/plugin.ts index 82dc69e39..fafd74354 100644 --- a/packages/plugins/wallet-services-plugin/src/plugin.ts +++ b/packages/plugins/wallet-services-plugin/src/plugin.ts @@ -100,6 +100,7 @@ export class WalletServicesPlugin extends SafeEventEmitter implements IPlugin { if (!connectedChainConfig.tickerName) throw WalletServicesPluginError.invalidParams("tickerName is required in chainConfig"); const enableAccountAbstraction = + web3auth.coreOptions.accountAbstractionProvider && web3auth.coreOptions.useAAWithExternalWallet && (web3auth.connectedAdapterName === WALLET_ADAPTERS.AUTH || (web3auth.connectedAdapterName !== WALLET_ADAPTERS.AUTH && web3auth.coreOptions.useAAWithExternalWallet)); From 8294a2da3b5e41bf45e55c583d4990c109f48a7f Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Fri, 6 Dec 2024 12:38:22 +0800 Subject: [PATCH 2/2] fix check --- packages/plugins/wallet-services-plugin/src/plugin.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/plugins/wallet-services-plugin/src/plugin.ts b/packages/plugins/wallet-services-plugin/src/plugin.ts index fafd74354..1fde5037c 100644 --- a/packages/plugins/wallet-services-plugin/src/plugin.ts +++ b/packages/plugins/wallet-services-plugin/src/plugin.ts @@ -101,7 +101,6 @@ export class WalletServicesPlugin extends SafeEventEmitter implements IPlugin { const enableAccountAbstraction = web3auth.coreOptions.accountAbstractionProvider && - web3auth.coreOptions.useAAWithExternalWallet && (web3auth.connectedAdapterName === WALLET_ADAPTERS.AUTH || (web3auth.connectedAdapterName !== WALLET_ADAPTERS.AUTH && web3auth.coreOptions.useAAWithExternalWallet));