File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,22 @@ const webhookSchema = z.union([
2424 action : z . enum ( [ "TRANSFER" , "BUY" , "SELL" ] ) ,
2525 status : z . enum ( [ "PENDING" , "FAILED" , "COMPLETED" ] ) ,
2626 originToken : z . object ( {
27- chainId : z . number ( ) ,
27+ chainId : z . coerce . number ( ) ,
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 ( ) ,
3636 destinationToken : z . object ( {
37- chainId : z . number ( ) ,
37+ chainId : z . coerce . number ( ) ,
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 ( ) ,
You can’t perform that action at this time.
0 commit comments