Skip to content

Commit

Permalink
[release] 20240405 (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored Apr 4, 2024
1 parent f8d7e24 commit 5222320
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .yarn/versions/07e87407.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
undecided:
- "@subql/common-cosmos"
- "@subql/node-cosmos"
17 changes: 10 additions & 7 deletions packages/node/src/indexer/dictionary.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2020-2023 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
import { Inject, Injectable } from '@nestjs/common';
import { EventEmitter2 } from '@nestjs/event-emitter';
import { NETWORK_FAMILY } from '@subql/common';
Expand All @@ -18,13 +19,10 @@ export class DictionaryService extends CoreDictionaryService {
eventEmitter: EventEmitter2,
dictionaryUrl?: string,
) {
super(
dictionaryUrl ?? project.network.dictionary,
project.network.chainId,
nodeConfig,
eventEmitter,
['lastProcessedHeight', 'chain'],
);
super(dictionaryUrl, project.network.chainId, nodeConfig, eventEmitter, [
'lastProcessedHeight',
'chain',
]);
}

static async create(
Expand All @@ -40,6 +38,11 @@ export class DictionaryService extends CoreDictionaryService {
nodeConfig.dictionaryRegistry,
));

assert(
typeof url === 'string',
`Cosmos doesn't yet support multiple dictionary endpoints`,
);

return new DictionaryService(project, nodeConfig, eventEmitter, url);
}
}
1 change: 1 addition & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]


## [3.2.4] - 2024-04-05
### Changed
- Update `@subql/types-core`
Expand Down

0 comments on commit 5222320

Please sign in to comment.