Skip to content

Commit fc56142

Browse files
fix: createAndSignUserOp with multiple transactions (#4839)
1 parent 842baa0 commit fc56142

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/clean-icons-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix createAndSignUserOp with multiple transactions

packages/thirdweb/src/wallets/smart/lib/userop.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ export async function createAndSignUserOp(options: {
683683
const tx = options.transactions[0] as PreparedTransaction;
684684
const serializedTx = await toSerializableTransaction({
685685
transaction: tx,
686+
from: accountAddress,
686687
});
687688
executeTx = prepareExecute({
688689
accountContract,
@@ -694,6 +695,7 @@ export async function createAndSignUserOp(options: {
694695
options.transactions.map((tx) =>
695696
toSerializableTransaction({
696697
transaction: tx,
698+
from: accountAddress,
697699
}),
698700
),
699701
);

0 commit comments

Comments
 (0)