Skip to content

Commit f7887da

Browse files
authored
updating processTx for userOp as per latest Wallet SDK updates for createSignedUserOp (#308)
1 parent d15d522 commit f7887da

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/worker/tasks/processTx.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,12 @@ export const processTx = async () => {
304304

305305
const nonce = randomNonce();
306306
try {
307-
const userOp = await signer.smartAccountAPI.createSignedUserOp(
308-
{
309-
target: tx.target || "",
310-
data: tx.data || "0x",
311-
value: tx.value ? BigNumber.from(tx.value) : undefined,
312-
nonce,
313-
},
314-
false,
315-
);
307+
const userOp = await signer.smartAccountAPI.createSignedUserOp({
308+
target: tx.target || "",
309+
data: tx.data || "0x",
310+
value: tx.value ? BigNumber.from(tx.value) : undefined,
311+
nonce,
312+
});
316313
const userOpHash = await signer.smartAccountAPI.getUserOpHash(
317314
userOp,
318315
);

0 commit comments

Comments
 (0)