Skip to content

Commit

Permalink
fix: typecheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Sep 25, 2024
1 parent 6d00ddc commit 898ffdb
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/0.8.9/stakingRouter/stakingRouter.module-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,13 @@ describe("StakingRouter.sol:module-sync", () => {
];

// module mock state
const stakingModuleSummary: Parameters<
StakingModule__MockForStakingRouterDepositAndSync["mock__getStakingModuleSummary"]
> = [
const stakingModuleSummary: Parameters<StakingModule__MockForStakingRouter["mock__getStakingModuleSummary"]> = [
100n, // exitedValidators
1000, // depositedValidators
200, // depositableValidators
];

const nodeOperatorSummary: Parameters<
StakingModule__MockForStakingRouterDepositAndSync["mock__getNodeOperatorSummary"]
> = [
const nodeOperatorSummary: Parameters<StakingModule__MockForStakingRouter["mock__getNodeOperatorSummary"]> = [
1, // targetLimitMode
100n, // targetValidatorsCount
1n, // stuckValidatorsCount
Expand All @@ -138,9 +134,7 @@ describe("StakingRouter.sol:module-sync", () => {
200n, // depositableValidatorsCount
];

const nodeOperatorsCounts: Parameters<
StakingModule__MockForStakingRouterDepositAndSync["mock__nodeOperatorsCount"]
> = [
const nodeOperatorsCounts: Parameters<StakingModule__MockForStakingRouter["mock__nodeOperatorsCount"]> = [
100n, // nodeOperatorsCount
95n, // activeNodeOperatorsCount
];
Expand Down Expand Up @@ -670,9 +664,7 @@ describe("StakingRouter.sol:module-sync", () => {
moduleSummary.depositableValidatorsCount,
);

const nodeOperatorSummary: Parameters<
StakingModule__MockForStakingRouterDepositAndSync["mock__getNodeOperatorSummary"]
> = [
const nodeOperatorSummary: Parameters<StakingModule__MockForStakingRouter["mock__getNodeOperatorSummary"]> = [
operatorSummary.targetLimitMode,
operatorSummary.targetValidatorsCount,
operatorSummary.stuckValidatorsCount,
Expand Down

0 comments on commit 898ffdb

Please sign in to comment.