File tree Expand file tree Collapse file tree 1 file changed +15
-19
lines changed 
components/coinbase_developer_platform/sources/new-wallet-event Expand file tree Collapse file tree 1 file changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -28,27 +28,23 @@ export default {
2828  hooks : { 
2929    async  activate ( )  { 
3030      this . coinbase . configure ( ) ; 
31-       try  { 
32-         const  webhook  =  await  this . coinbase . createWebhook ( { 
33-           notificationUri : this . http . endpoint , 
34-           eventType : "wallet_activity" , 
35-           networkId : this . networkId , 
36-           eventTypeFilter : { 
37-             addresses : [ 
38-               this . walletAddress , 
39-             ] , 
40-             wallet_id : "" , 
41-           } , 
42-         } ) ; 
31+       const  webhook  =  await  this . coinbase . createWebhook ( { 
32+         notificationUri : this . http . endpoint , 
33+         eventType : "wallet_activity" , 
34+         networkId : this . networkId , 
35+         eventTypeFilter : { 
36+           addresses : [ 
37+             this . walletAddress , 
38+           ] , 
39+           wallet_id : "" , 
40+         } , 
41+       } ) ; 
4342
44-         if  ( ! webhook ?. model ?. id )  { 
45-           throw  new  ConfigurationError ( "Failed to create webhook" ) ; 
46-         } 
47- 
48-         this . _setWebhookId ( webhook . model . id ) ; 
49-       }  catch  ( error )  { 
50-         console . log ( error ) ; 
43+       if  ( ! webhook ?. model ?. id )  { 
44+         throw  new  ConfigurationError ( "Failed to create webhook" ) ; 
5145      } 
46+ 
47+       this . _setWebhookId ( webhook . model . id ) ; 
5248    } , 
5349    async  deactivate ( )  { 
5450      this . coinbase . configure ( ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments