We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4ade6 commit 2fb7939Copy full SHA for 2fb7939
.changeset/calm-pets-post.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+fix webhook parsing
packages/thirdweb/src/bridge/Webhook.ts
@@ -46,7 +46,12 @@ const webhookSchema = z.union([
46
sender: addressSchema,
47
receiver: addressSchema,
48
type: z.string(),
49
- transactions: z.array(hexSchema),
+ transactions: z.array(
50
+ z.object({
51
+ chainId: z.coerce.number(),
52
+ transactionHash: hexSchema,
53
+ }),
54
+ ),
55
developerFeeBps: z.coerce.number(),
56
developerFeeRecipient: addressSchema,
57
purchaseData: z.record(z.string(), z.unknown()),
0 commit comments