From 55594cc2c365aba21bb60191cb4ebf2a66b6676d Mon Sep 17 00:00:00 2001 From: lucas-manuel Date: Mon, 13 Nov 2023 09:43:58 -0500 Subject: [PATCH] fix: update naming --- .../EmergencySpell_SparkLend_FreezeSingleAsset.sol | 10 +++++----- test/IntegrationTests.t.sol | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/spells/EmergencySpell_SparkLend_FreezeSingleAsset.sol b/src/spells/EmergencySpell_SparkLend_FreezeSingleAsset.sol index d5593ac..59d2375 100644 --- a/src/spells/EmergencySpell_SparkLend_FreezeSingleAsset.sol +++ b/src/spells/EmergencySpell_SparkLend_FreezeSingleAsset.sol @@ -5,16 +5,16 @@ import { ISparkLendFreezerMom } from "src/interfaces/ISparkLendFreezerMom.sol"; contract EmergencySpell_SparkLend_FreezeSingleAsset { - address public immutable sparkLendFreezer; + address public immutable sparkLendFreezerMom; address public immutable reserve; - constructor(address sparklendFreezer_, address reserve_) { - sparkLendFreezer = sparklendFreezer_; - reserve = reserve_; + constructor(address sparklendFreezerMom_, address reserve_) { + sparkLendFreezerMom = sparklendFreezerMom_; + reserve = reserve_; } function freeze() external { - ISparkLendFreezerMom(sparkLendFreezer).freezeMarket(reserve); + ISparkLendFreezerMom(sparkLendFreezerMom).freezeMarket(reserve); } } diff --git a/test/IntegrationTests.t.sol b/test/IntegrationTests.t.sol index 42c3fdf..ec037a6 100644 --- a/test/IntegrationTests.t.sol +++ b/test/IntegrationTests.t.sol @@ -73,7 +73,11 @@ contract IntegrationTests is Test { assertTrue(authority.hat() == address(freezeWethSpell)); assertTrue( - authority.canCall(address(freezeWethSpell), address(freezer), freezer.freezeMarket.selector) + authority.canCall( + address(freezeWethSpell), + address(freezer), + freezer.freezeMarket.selector + ) ); vm.expectRevert(bytes("4")); // CALLER_NOT_RISK_OR_POOL_ADMIN