Skip to content

Commit

Permalink
finished updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Jan 27, 2025
1 parent 544b372 commit 90e4b50
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions packages/protocol/test-sol/unit/common/FeeCurrencyDirectory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contract FeeCurrencyDirectoryTest is TestWithUtils08 {
}

contract FeeCurrencyDirectoryTest_L2 is FeeCurrencyDirectoryTest, WhenL2 {
function setUp() public override(FeeCurrencyDirectoryTest, WhenL2) {
function setUp() public virtual override(FeeCurrencyDirectoryTest, WhenL2) {
super.setUp();
}
}
Expand Down Expand Up @@ -84,8 +84,14 @@ contract TestSetCurrencyConfig is FeeCurrencyDirectoryTest {
}
}

contract TestSetCurrencyConfig_L2 is FeeCurrencyDirectoryTest_L2, TestSetCurrencyConfig {
function setUp() public override(FeeCurrencyDirectoryTest, FeeCurrencyDirectoryTest_L2) {
super.setUp();
}
}

contract TestRemoveCurrencies is FeeCurrencyDirectoryTest {
function setUp() public override {
function setUp() public virtual override {
super.setUp();
address token = address(4);
directory.setCurrencyConfig(token, address(oracle), 21000);
Expand Down Expand Up @@ -127,10 +133,16 @@ contract TestRemoveCurrencies is FeeCurrencyDirectoryTest {
}
}

contract TestRemoveCurrencies_L2 is FeeCurrencyDirectoryTest_L2, TestRemoveCurrencies {
function setUp() public override(TestRemoveCurrencies, FeeCurrencyDirectoryTest_L2) {
super.setUp();
}
}

contract TestGetExchangeRate is FeeCurrencyDirectoryTest {
address token;

function setUp() public override {
function setUp() public virtual override {
super.setUp();
token = address(3);
oracle.setExchangeRate(token, 200, 4); // 50:1 ratio
Expand All @@ -148,3 +160,9 @@ contract TestGetExchangeRate is FeeCurrencyDirectoryTest {
directory.getExchangeRate(address(4));
}
}

contract TestGetExchangeRate_L2 is FeeCurrencyDirectoryTest_L2, TestGetExchangeRate {
function setUp() public override(TestGetExchangeRate, FeeCurrencyDirectoryTest_L2) {
super.setUp();
}
}

0 comments on commit 90e4b50

Please sign in to comment.