Skip to content

Commit 2fddce2

Browse files
fix
1 parent 24722fe commit 2fddce2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/indexer/indexer.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class IndexerService implements IndexerInterface {
168168

169169
@LogPerformanceAsync(MetricsEvents.SetIndexerDuration)
170170
async getExecutionResults(hash: string): Promise<Block> {
171-
return await this.indexerInterface.getBlock(hash);
171+
return await this.indexerInterface.getExecutionResults(hash);
172172
}
173173

174174
@LogPerformanceAsync(MetricsEvents.SetIndexerDuration)

src/endpoints/blocks/block.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class BlockService {
131131
result.proposer = publicKeys[result.proposer];
132132
}
133133
if (!isChainAndromedaEnabled) {
134-
result.validators = result.validators.map((validator: number) => publicKeys[validator]);
134+
result.validators = result.validators?.map((validator: number) => publicKeys[validator]);
135135
} else {
136136
result.validators = publicKeys;
137137
}

0 commit comments

Comments
 (0)