Skip to content

Commit

Permalink
remove check for AA support on chain (to support stealth chains) (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mr authored Jan 29, 2025
1 parent be8b644 commit 110c782
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/shared/utils/transaction/insert-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 110c782

Please sign in to comment.