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", [
2828 data : z . object ( {
2929 action : z . enum ( [ "TRANSFER" , "BUY" , "SELL" ] ) ,
3030 clientId : z . string ( ) ,
31- destinationAmount : z . string ( ) ,
31+ destinationAmount : z . coerce . bigint ( ) ,
3232 destinationToken : tokenSchema ,
3333 developerFeeBps : z . coerce . number ( ) ,
3434 developerFeeRecipient : addressSchema ,
35- originAmount : z . string ( ) ,
35+ originAmount : z . coerce . bigint ( ) ,
3636 originToken : tokenSchema ,
3737 paymentId : z . string ( ) ,
3838 // only exists when the payment was triggered from a developer specified payment link
@@ -62,7 +62,7 @@ const onrampWebhookSchema = z.discriminatedUnion("version", [
6262 } ) ,
6363 z . object ( {
6464 data : z . object ( {
65- amount : z . string ( ) ,
65+ amount : z . coerce . bigint ( ) ,
6666 currency : z . string ( ) ,
6767 currencyAmount : z . number ( ) ,
6868 id : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments