Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
refactor: remove unused helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
amusingaxl committed Jan 18, 2024
1 parent 7daf57c commit 8cdb9d6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/DssSpell.t.base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1461,14 +1461,6 @@ contract DssSpellTestBase is Config, DssTest {
_checkOsmSrcWards(_addr, contractName);
}

function _checkChainlogKey(bytes32 key) internal {
assertEq(chainLog.getAddress(key), addr.addr(key), _concat("TestError/Chainlog-key-mismatch-", key));
}

function _checkChainlogVersion(string memory key) internal {
assertEq(chainLog.version(), key, _concat("TestError/Chainlog-version-mismatch-", key));
}

function _checkRWADocUpdate(bytes32 ilk, string memory currentDoc, string memory newDoc) internal {
(string memory doc, address pip, uint48 tau, uint48 toc) = liquidationOracle.ilks(ilk);

Expand Down Expand Up @@ -1910,6 +1902,6 @@ contract DssSpellTestBase is Config, DssTest {
assertEq(_val, addr.addr(_key), _concat("TestError/chainlog-addr-mismatch-", _key));
}

_checkChainlogVersion(afterSpell.chainlog_version);
assertEq(chainLog.version(), key, _concat("TestError/Chainlog-version-mismatch-", key));
}
}

0 comments on commit 8cdb9d6

Please sign in to comment.