From 4fe903793c5ba93973ed39e7975d8115ad5eeb82 Mon Sep 17 00:00:00 2001 From: Prithvish Baidya Date: Wed, 29 Jan 2025 21:59:39 +0530 Subject: [PATCH] remove check for AA support on chain (to support stealth chains) --- .../utils/transaction/insert-transaction.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/src/shared/utils/transaction/insert-transaction.ts b/src/shared/utils/transaction/insert-transaction.ts index 25fd9996..5e9da7d8 100644 --- a/src/shared/utils/transaction/insert-transaction.ts +++ b/src/shared/utils/transaction/insert-transaction.ts @@ -82,19 +82,6 @@ export const insertTransaction = async ( ); } - if ( - !(await doesChainSupportService( - queuedTransaction.chainId, - "account-abstraction", - )) - ) { - throw createCustomError( - "Chain does not support smart backend wallets", - StatusCodes.BAD_REQUEST, - "SBW_CHAIN_NOT_SUPPORTED", - ); - } - queuedTransaction = { ...queuedTransaction, isUserOp: true, @@ -124,19 +111,6 @@ export const insertTransaction = async ( // entrypointAddress is not set // accountFactoryAddress is not set if (walletDetails && isSmartBackendWallet(walletDetails)) { - if ( - !(await doesChainSupportService( - queuedTransaction.chainId, - "account-abstraction", - )) - ) { - throw createCustomError( - "Chain does not support smart backend wallets", - StatusCodes.BAD_REQUEST, - "SBW_CHAIN_NOT_SUPPORTED", - ); - } - queuedTransaction = { ...queuedTransaction, entrypointAddress: walletDetails.entrypointAddress ?? undefined,