Skip to content

Commit

Permalink
fix: update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Nov 13, 2023
1 parent e43763e commit 55594cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/spells/EmergencySpell_SparkLend_FreezeSingleAsset.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
6 changes: 5 additions & 1 deletion test/IntegrationTests.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55594cc

Please sign in to comment.