File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ describe("parseIncomingWebhook", () => {
71
71
...validWebhook ,
72
72
data : {
73
73
...validWebhook . data ,
74
- originAmount : validWebhook . data . originAmount . toString ( ) ,
75
74
destinationAmount : validWebhook . data . destinationAmount . toString ( ) ,
75
+ originAmount : validWebhook . data . originAmount . toString ( ) ,
76
76
} ,
77
- }
77
+ } ;
78
78
79
79
it ( "should successfully verify a valid webhook" , async ( ) => {
80
80
const signature = await generateSignature (
@@ -158,8 +158,8 @@ describe("parseIncomingWebhook", () => {
158
158
data : {
159
159
someField : "value" ,
160
160
} ,
161
- version : 1 ,
162
161
topic : "pay.onchain-transaction" ,
162
+ version : 1 ,
163
163
} ;
164
164
const v1PayloadString = JSON . stringify ( v1Payload ) ;
165
165
const signature = await generateSignature ( testTimestamp , v1PayloadString ) ;
@@ -585,8 +585,8 @@ describe("parseIncomingWebhook", () => {
585
585
586
586
it ( "should throw error for version 1 payload missing data object" , async ( ) => {
587
587
const invalidPayload = {
588
- version : 1 ,
589
588
topic : "pay.onchain-transaction" ,
589
+ version : 1 ,
590
590
// no data field
591
591
} as unknown as WebhookPayload ;
592
592
const payloadString = JSON . stringify ( invalidPayload ) ;
You can’t perform that action at this time.
0 commit comments