File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ const onchainWebhookSchema = z.discriminatedUnion("version", [
28
28
data : z . object ( {
29
29
action : z . enum ( [ "TRANSFER" , "BUY" , "SELL" ] ) ,
30
30
clientId : z . string ( ) ,
31
- destinationAmount : z . string ( ) ,
31
+ destinationAmount : z . coerce . bigint ( ) ,
32
32
destinationToken : tokenSchema ,
33
33
developerFeeBps : z . coerce . number ( ) ,
34
34
developerFeeRecipient : addressSchema ,
35
- originAmount : z . string ( ) ,
35
+ originAmount : z . coerce . bigint ( ) ,
36
36
originToken : tokenSchema ,
37
37
paymentId : z . string ( ) ,
38
38
// only exists when the payment was triggered from a developer specified payment link
@@ -62,7 +62,7 @@ const onrampWebhookSchema = z.discriminatedUnion("version", [
62
62
} ) ,
63
63
z . object ( {
64
64
data : z . object ( {
65
- amount : z . string ( ) ,
65
+ amount : z . coerce . bigint ( ) ,
66
66
currency : z . string ( ) ,
67
67
currencyAmount : z . number ( ) ,
68
68
id : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments