Skip to content

Commit

Permalink
fix: wrong block history chain for polygon and avax
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 16, 2024
1 parent e972011 commit 6b84593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/apps/worker-service/src/worker/avax.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class AvaxWorker {
this.logger.debug(`save block history ${blockNumber}`);
await this.blockHistoryRepository.saveBlockHistory({
blockNumber: blockNumber,
chain: MonitorNetwork.Ethereum,
chain: MonitorNetwork.Avalanche,
confirmed: confirmed,
isError: isError || false,
errorDetail: error !== undefined ? JSON.stringify(error) : '',
Expand Down
2 changes: 1 addition & 1 deletion app/apps/worker-service/src/worker/polygon.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class PolygonWorker {
this.logger.debug(`save block history ${blockNumber}`);
await this.blockHistoryRepository.saveBlockHistory({
blockNumber: blockNumber,
chain: MonitorNetwork.Ethereum,
chain: MonitorNetwork.Polygon,
confirmed: confirmed,
isError: isError || false,
errorDetail: error !== undefined ? JSON.stringify(error) : '',
Expand Down

0 comments on commit 6b84593

Please sign in to comment.