Skip to content

Commit 110c782

Browse files
authored
remove check for AA support on chain (to support stealth chains) (#838)
1 parent be8b644 commit 110c782

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/shared/utils/transaction/insert-transaction.ts

-26
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ export const insertTransaction = async (
8282
);
8383
}
8484

85-
if (
86-
!(await doesChainSupportService(
87-
queuedTransaction.chainId,
88-
"account-abstraction",
89-
))
90-
) {
91-
throw createCustomError(
92-
"Chain does not support smart backend wallets",
93-
StatusCodes.BAD_REQUEST,
94-
"SBW_CHAIN_NOT_SUPPORTED",
95-
);
96-
}
97-
9885
queuedTransaction = {
9986
...queuedTransaction,
10087
isUserOp: true,
@@ -124,19 +111,6 @@ export const insertTransaction = async (
124111
// entrypointAddress is not set
125112
// accountFactoryAddress is not set
126113
if (walletDetails && isSmartBackendWallet(walletDetails)) {
127-
if (
128-
!(await doesChainSupportService(
129-
queuedTransaction.chainId,
130-
"account-abstraction",
131-
))
132-
) {
133-
throw createCustomError(
134-
"Chain does not support smart backend wallets",
135-
StatusCodes.BAD_REQUEST,
136-
"SBW_CHAIN_NOT_SUPPORTED",
137-
);
138-
}
139-
140114
queuedTransaction = {
141115
...queuedTransaction,
142116
entrypointAddress: walletDetails.entrypointAddress ?? undefined,

0 commit comments

Comments
 (0)