Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading