Skip to content

Commit

Permalink
fix(storage): in memory indexer metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque committed Nov 10, 2023
1 parent 3786eba commit 1cdaebc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/data-access/src/in-memory-indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ export class InMemoryIndexer implements StorageTypes.IIndexer {
.flat()
.map(
(item): StorageTypes.IIndexedTransaction => ({
blockNumber: 0,
blockTimestamp: 0,
blockNumber: item.meta.ethereum?.blockNumber ?? 0,
blockTimestamp: item.meta.ethereum?.blockTimestamp ?? 0,
channelId: item.channelId,
hash: item.locationId,
size: '0',
smartContractAddress: '',
size: String(item.meta.ipfs?.size ?? 0),
smartContractAddress: item.meta.ethereum?.smartContractAddress ?? '',
topics: [],
transactionHash: '',
transactionHash: item.meta.ethereum?.transactionHash ?? '',
data: item.transaction.data,
encryptedData: item.transaction.encryptedData,
encryptionMethod: item.transaction.encryptionMethod,
Expand Down

0 comments on commit 1cdaebc

Please sign in to comment.