mirror of
				https://github.com/hackku21/loc-chain-backend.git
				synced 2025-06-13 12:53:59 +00:00 
			
		
		
		
	Fix incorrect path to data
This commit is contained in:
		
							parent
							
								
									d8da4e012f
								
							
						
					
					
						commit
						27c6619d8a
					
				@ -227,7 +227,7 @@ export class Blockchain extends Unit {
 | 
				
			|||||||
            this.logging.verbose(`Making request to: ${peer.host}api/v1/chain/submit`)
 | 
					            this.logging.verbose(`Making request to: ${peer.host}api/v1/chain/submit`)
 | 
				
			||||||
            const result = await fetch(`${peer.host}api/v1/chain/submit`).then(res => res.json())
 | 
					            const result = await fetch(`${peer.host}api/v1/chain/submit`).then(res => res.json())
 | 
				
			||||||
            console.log('got result after making request', result)
 | 
					            console.log('got result after making request', result)
 | 
				
			||||||
            const blocks: unknown = result.data?.data?.records
 | 
					            const blocks: unknown = result.data?.records
 | 
				
			||||||
            if ( Array.isArray(blocks) && blocks.every(block => {
 | 
					            if ( Array.isArray(blocks) && blocks.every(block => {
 | 
				
			||||||
                return isBlockResourceItem(block)
 | 
					                return isBlockResourceItem(block)
 | 
				
			||||||
            }) ) {
 | 
					            }) ) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user