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", () => {
7171 ...validWebhook ,
7272 data : {
7373 ...validWebhook . data ,
74- originAmount : validWebhook . data . originAmount . toString ( ) ,
7574 destinationAmount : validWebhook . data . destinationAmount . toString ( ) ,
75+ originAmount : validWebhook . data . originAmount . toString ( ) ,
7676 } ,
77- }
77+ } ;
7878
7979 it ( "should successfully verify a valid webhook" , async ( ) => {
8080 const signature = await generateSignature (
@@ -158,8 +158,8 @@ describe("parseIncomingWebhook", () => {
158158 data : {
159159 someField : "value" ,
160160 } ,
161- version : 1 ,
162161 topic : "pay.onchain-transaction" ,
162+ version : 1 ,
163163 } ;
164164 const v1PayloadString = JSON . stringify ( v1Payload ) ;
165165 const signature = await generateSignature ( testTimestamp , v1PayloadString ) ;
@@ -585,8 +585,8 @@ describe("parseIncomingWebhook", () => {
585585
586586 it ( "should throw error for version 1 payload missing data object" , async ( ) => {
587587 const invalidPayload = {
588- version : 1 ,
589588 topic : "pay.onchain-transaction" ,
589+ version : 1 ,
590590 // no data field
591591 } as unknown as WebhookPayload ;
592592 const payloadString = JSON . stringify ( invalidPayload ) ;
You can’t perform that action at this time.
0 commit comments