Don't pass logger to sendPayment
This commit is contained in:
		
							parent
							
								
									0de82db78a
								
							
						
					
					
						commit
						71c753810c
					
				@ -29,7 +29,7 @@ export function useWallet (name) {
 | 
			
		||||
    const hash = bolt11Tags(bolt11).payment_hash
 | 
			
		||||
    logger.info('sending payment:', `payment_hash=${hash}`)
 | 
			
		||||
    try {
 | 
			
		||||
      const { preimage } = await wallet.sendPayment({ bolt11, config, logger })
 | 
			
		||||
      const { preimage } = await wallet.sendPayment({ bolt11, config })
 | 
			
		||||
      logger.ok('payment successful:', `payment_hash=${hash}`, `preimage=${preimage}`)
 | 
			
		||||
    } catch (err) {
 | 
			
		||||
      const message = err.message || err.toString?.()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user