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