Skip to content

Commit 7b8ceeb

Browse files
[SDK] Show policy error for 7702 transactions (#8077)
1 parent 1d90437 commit 7b8ceeb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/smart-mugs-doubt.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+
Show policy error for 7702 transactions

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ export async function executeWithSignature(args: {
361361
],
362362
});
363363

364+
if (!res.queueId) {
365+
throw new Error(`Error executing 7702 transaction: ${stringify(res)}`);
366+
}
367+
364368
return {
365369
transactionId: res.queueId,
366370
};

0 commit comments

Comments
 (0)