Skip to content

Commit f0b2288

Browse files
committed
fix: coerce webhook schema numbers
1 parent defc808 commit f0b2288

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/thirdweb/src/bridge/Webhook.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const webhookSchema = z.union([
2828
address: addressSchema,
2929
name: z.string(),
3030
symbol: z.string(),
31-
decimals: z.number(),
32-
priceUsd: z.number(),
31+
decimals: z.coerce.number(),
32+
priceUsd: z.coerce.number(),
3333
iconUri: z.optional(z.string()),
3434
}),
3535
originAmount: z.string(),
@@ -38,8 +38,8 @@ const webhookSchema = z.union([
3838
address: addressSchema,
3939
name: z.string(),
4040
symbol: z.string(),
41-
decimals: z.number(),
42-
priceUsd: z.number(),
41+
decimals: z.coerce.number(),
42+
priceUsd: z.coerce.number(),
4343
iconUri: z.optional(z.string()),
4444
}),
4545
destinationAmount: z.string(),

0 commit comments

Comments
 (0)