From 0f1dbc314bb136f76d471144f67780a6db7be116 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 6 Feb 2025 14:37:50 +0100 Subject: [PATCH] vault: formatting --- contracts/vault/VaultBase.sol | 5 +---- test/Vault.tests.js | 5 ++--- test/vault.js | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/contracts/vault/VaultBase.sol b/contracts/vault/VaultBase.sol index cb334ca..2bed0ec 100644 --- a/contracts/vault/VaultBase.sol +++ b/contracts/vault/VaultBase.sol @@ -189,10 +189,7 @@ abstract contract VaultBase { _token.safeTransfer(address(0xdead), amount); } - function _burnAll( - Controller controller, - Fund fund - ) internal { + function _burnAll(Controller controller, Fund fund) internal { Lock storage lock = _locks[controller][fund]; require(lock.status() == LockStatus.Locked, LockRequired()); diff --git a/test/Vault.tests.js b/test/Vault.tests.js index b153f65..bbe5e1f 100644 --- a/test/Vault.tests.js +++ b/test/Vault.tests.js @@ -35,7 +35,6 @@ describe("Vault", function () { }) describe("when a fund has no lock set", function () { - it("does not have any balances", async function () { const balance = await vault.getBalance(fund, account.address) const designated = await vault.getDesignatedBalance(fund, account.address) @@ -596,7 +595,7 @@ describe("Vault", function () { .withdrawByRecipient(controller.address, fund) expect(await vault.getLockStatus(fund)).to.equal(LockStatus.NoLock) expect(await vault.getLockExpiry(fund)).to.equal(0) - }) + }) }) describe("flowing", function () { @@ -735,7 +734,7 @@ describe("Vault", function () { }) describe("fund is not locked", function () { - beforeEach(async function() { + beforeEach(async function () { setAutomine(true) await expire() }) diff --git a/test/vault.js b/test/vault.js index 3d4f1a2..88f8197 100644 --- a/test/vault.js +++ b/test/vault.js @@ -2,7 +2,7 @@ const LockStatus = { NoLock: 0, Locked: 1, Unlocked: 2, - Burned: 3 + Burned: 3, } module.exports = { LockStatus }