Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Nov 7, 2024
1 parent a2a846d commit 426fb06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 3 additions & 11 deletions scripts/staking-router-v2/sr-v2-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import { ethers, run } from "hardhat";
import { join } from "path";
import readline from "readline";

import {
DepositSecurityModule,
DepositSecurityModule__factory,
LidoLocator,
LidoLocator__factory,
} from "typechain-types";
import { DepositSecurityModule, LidoLocator } from "typechain-types";

import {
cy,
Expand Down Expand Up @@ -188,7 +183,7 @@ async function main() {
const SC_ADMIN = APP_AGENT_ADDRESS;
const LOCATOR = state[Sk.lidoLocator].proxy.address;

const locatorImplContract = await loadContract<LidoLocator>('LidoLocator', INTERMEDIATE_LOCATOR_IMPL);
const locatorImplContract = await loadContract<LidoLocator>("LidoLocator", INTERMEDIATE_LOCATOR_IMPL);
// fetch contract addresses that will not changed
const ACCOUNTING_ORACLE_PROXY = await locatorImplContract.accountingOracle();
const EL_REWARDS_VAULT = await locatorImplContract.elRewardsVault();
Expand Down Expand Up @@ -267,10 +262,7 @@ async function main() {
log.success(`New DSM address: ${depositSecurityModuleAddress}`);
log.emptyLine();

const dsmContract = await loadContract<DepositSecurityModule>(
'DepositSecurityModule',
depositSecurityModuleAddress,
);
const dsmContract = await loadContract<DepositSecurityModule>("DepositSecurityModule", depositSecurityModuleAddress);

await dsmContract.addGuardians(GUARDIANS, QUORUM);
await dsmContract.setOwner(APP_AGENT_ADDRESS);
Expand Down
4 changes: 3 additions & 1 deletion test/integration/protocol-happy-path.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
sdvtEnsureOperators,
} from "lib/protocol/helpers";

import { Snapshot } from "test/suite";
import { bailOnFailure, Snapshot } from "test/suite";

const AMOUNT = ether("100");
const MAX_DEPOSIT = 150n;
Expand Down Expand Up @@ -52,6 +52,8 @@ describe("Protocol Happy Path", () => {
});
};

beforeEach(bailOnFailure);

it("Should finalize withdrawal queue", async () => {
const { lido, withdrawalQueue } = ctx.contracts;

Expand Down

0 comments on commit 426fb06

Please sign in to comment.