Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Sep 6, 2023
1 parent 6f53a13 commit 49a330e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/common/registry/storage/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const KEY_LEN = 98;
export const DEPOSIT_SIGNATURE_LEN = 194;
export const MODULE_ADDRESS_LEN = 42;
export const REWARD_ADDRESS_LEN = 42;
5 changes: 3 additions & 2 deletions src/common/registry/storage/operator.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Entity, EntityRepositoryType, PrimaryKey, PrimaryKeyType, Property } from '@mikro-orm/core';
import { MODULE_ADDRESS_LEN, REWARD_ADDRESS_LEN } from './constants';
import { RegistryOperatorRepository } from './operator.repository';

@Entity({ customRepository: () => RegistryOperatorRepository })
Expand Down Expand Up @@ -27,7 +28,7 @@ export class RegistryOperator {
@Property({ length: 256 })
name!: string;

@Property({ length: 42 })
@Property({ length: REWARD_ADDRESS_LEN })
rewardAddress!: string;

@Property()
Expand All @@ -43,6 +44,6 @@ export class RegistryOperator {
usedSigningKeys!: number;

@PrimaryKey()
@Property({ length: 42 })
@Property({ length: MODULE_ADDRESS_LEN })
moduleAddress!: string;
}
2 changes: 0 additions & 2 deletions src/http/sr-modules-keys/sr-modules-keys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { KeyEntity } from 'staking-router-modules/interfaces/staking-module.inte
import { EntityManager } from '@mikro-orm/knex';
import { IsolationLevel } from '@mikro-orm/core';

type KeyFieldT = keyof Key;

@Injectable()
export class SRModulesKeysService {
constructor(
Expand Down
1 change: 1 addition & 0 deletions src/http/sr-modules/sr-modules.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Test } from '@nestjs/testing';
import { Global, INestApplication, Module, ValidationPipe, VersioningType } from '@nestjs/common';
import { MikroORM } from '@mikro-orm/core';
Expand Down
1 change: 1 addition & 0 deletions src/http/status/status.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { EntityManager } from '@mikro-orm/postgresql';
import { ValidatorsService } from 'validators';
import { IsolationLevel } from '@mikro-orm/core';
import { StakingRouterService } from 'staking-router-modules/staking-router.service';

@Injectable()
export class StatusService {
constructor(
Expand Down

0 comments on commit 49a330e

Please sign in to comment.