Skip to content

Commit

Permalink
fix: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Feb 27, 2023
1 parent 2064c97 commit a7fdc11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"test:e2e": "jest --detectOpenHandles --forceExit --config ./test/jest-e2e.json",
"typechain": "typechain --target=ethers-v5 --out-dir ./src/generated ./src/abi/*.json",
"postinstall": "yarn typechain",
"docker:build": "docker build -t $npm_package_config_dockerorg/$npm_package_name:$npm_package_version .",
Expand Down
2 changes: 1 addition & 1 deletion src/guardian/guardian-metrics/guardian-metrics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class GuardianMetricsService {

const operatorsKeysTotal = unusedKeys.length;
this.operatorsKeysCounter.set(
{ type: 'total', stakingModuleId },
{ type: 'unused', stakingModuleId },
operatorsKeysTotal,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('GuardianService', () => {
srModuleId: 1,
};

it('should call handleKeysIntersections if next keys are found in the deposit contract', async () => {
it('should call handleKeysIntersections if unused keys are found in the deposit contract', async () => {
const depositedKey = depositedPubKeys[0];
const unusedKeys = [depositedKey];
const events = currentBlockData.depositedEvents.events.map(
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('GuardianService', () => {
expect(mockGetWithdrawalCredentials).toBeCalledTimes(1);
});

it('should call handleCorrectKeys if Lido next keys are not found in the deposit contract', async () => {
it('should call handleCorrectKeys if Lido unused keys are not found in the deposit contract', async () => {
const notDepositedKey = '0x2345';
const unusedKeys = [notDepositedKey];
const blockData = { ...currentBlockData, unusedKeys };
Expand Down
2 changes: 1 addition & 1 deletion src/messages/messages.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const MESSAGE_TOPIC_PREFIX_BY_NETWORK: {
} = {
[CHAINS.Mainnet]: 'mainnet',
[CHAINS.Goerli]: 'goerli',
[CHAINS.Zhejiang]: 'testnet',
[CHAINS.Zhejiang]: 'zhejiang',
};

export const getMessageTopicPrefix = (chainId: CHAINS): string => {
Expand Down

0 comments on commit a7fdc11

Please sign in to comment.