Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/smart-mugs-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Show policy error for 7702 transactions
4 changes: 4 additions & 0 deletions packages/thirdweb/src/wallets/smart/lib/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@
],
});

if (!res.queueId) {
throw new Error(`Error executing 7702 transaction: ${stringify(res)}`);
}

Check warning on line 366 in packages/thirdweb/src/wallets/smart/lib/bundler.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/wallets/smart/lib/bundler.ts#L365-L366

Added lines #L365 - L366 were not covered by tests

return {
transactionId: res.queueId,
};
Expand Down
Loading