We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
in
undefined
1 parent ced81d3 commit af9bd9bCopy full SHA for af9bd9b
packages/indexer-common/src/indexer-management/types.ts
@@ -165,11 +165,11 @@ const Caip2ByChainId: { [key: number]: string } = {
165
/// or chain ids (numbers).
166
export function resolveChainId(key: number | string): string {
167
if (typeof key === 'number') {
168
- if (key in Caip2ByChainId) {
+ if (Caip2ByChainId[key] !== undefined) {
169
return Caip2ByChainId[key]
170
}
171
} else {
172
- if (key in Caip2ByChainAlias) {
+ if (Caip2ByChainAlias[key] !== undefined) {
173
return Caip2ByChainAlias[key]
174
175
0 commit comments