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, };