Merge pull request #5209 from mempool/mononaut/fix-type-error
Fix coinbase address type error
This commit is contained in:
		
						commit
						f98bb675e7
					
				| @ -724,7 +724,7 @@ class Blocks { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         const coinbaseTx = await bitcoinApi.$getCoinbaseTx(hash); |         const coinbaseTx = await bitcoinApi.$getCoinbaseTx(hash); | ||||||
|         const addresses = new Set<string>(coinbaseTx.vout.map(v => v.scriptpubkey_address).filter(a => a)); |         const addresses = new Set<string>(coinbaseTx.vout.map(v => v.scriptpubkey_address).filter(a => a) as string[]); | ||||||
|         await blocksRepository.$saveCoinbaseAddresses(hash, [...addresses]); |         await blocksRepository.$saveCoinbaseAddresses(hash, [...addresses]); | ||||||
| 
 | 
 | ||||||
|         // Logging
 |         // Logging
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user