From 7bcd42e5deb302e1f8b8325aacc847a9f21fe476 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Fri, 19 Sep 2025 20:36:11 +1200 Subject: [PATCH] [SDK] Show policy error for 7702 transactions --- .changeset/smart-mugs-doubt.md | 5 +++++ packages/thirdweb/src/wallets/smart/lib/bundler.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/smart-mugs-doubt.md diff --git a/.changeset/smart-mugs-doubt.md b/.changeset/smart-mugs-doubt.md new file mode 100644 index 00000000000..47d55fceb9d --- /dev/null +++ b/.changeset/smart-mugs-doubt.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Show policy error for 7702 transactions diff --git a/packages/thirdweb/src/wallets/smart/lib/bundler.ts b/packages/thirdweb/src/wallets/smart/lib/bundler.ts index d8264c29f08..61314408ec6 100644 --- a/packages/thirdweb/src/wallets/smart/lib/bundler.ts +++ b/packages/thirdweb/src/wallets/smart/lib/bundler.ts @@ -361,6 +361,10 @@ export async function executeWithSignature(args: { ], }); + if (!res.queueId) { + throw new Error(`Error executing 7702 transaction: ${stringify(res)}`); + } + return { transactionId: res.queueId, };