Skip to content

Commit 39f45d5

Browse files
authored
fix: limit 'to' check in getPopulatedOrErroredTransaction to UserOp only (#690)
1 parent c122473 commit 39f45d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker/tasks/sendTransactionWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export const getPopulatedOrErroredTransaction = async (
425425
const to = queuedTransaction.to ?? queuedTransaction.target;
426426

427427
if (!from) throw new Error("Invalid transaction parameters: from");
428-
if (!to) throw new Error("Invalid transaction parameters: to");
428+
if (queuedTransaction.isUserOp && !to) throw new Error("Invalid transaction parameters: to");
429429

430430
const populatedTransaction = await toSerializableTransaction({
431431
from: getChecksumAddress(from),

0 commit comments

Comments
 (0)