Skip to content

Commit

Permalink
Merge pull request #89 from morpho-org/test/enforce-chainid
Browse files Browse the repository at this point in the history
enforce chain id is 1 in tests
  • Loading branch information
MathisGD authored Mar 8, 2024
2 parents 7d638ad + 2bfebbc commit 1a4ef4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/MorphoChainlinkOracleV2FactoryTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract ChainlinkOracleFactoryTest is Test {

function setUp() public {
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
require(block.chainid == 1, "chain isn't Ethereum");
factory = new MorphoChainlinkOracleV2Factory();
}

Expand Down
1 change: 1 addition & 0 deletions test/MorphoChainlinkOracleV2Test.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract MorphoChainlinkOracleV2Test is Test {

function setUp() public {
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
require(block.chainid == 1, "chain isn't Ethereum");
}

function testOracleWbtcUsdc() public {
Expand Down
1 change: 1 addition & 0 deletions test/WstEthStEthExchangeRateChainlinkAdapterTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ contract WstEthStEthExchangeRateChainlinkAdapterTest is Test {

function setUp() public {
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
require(block.chainid == 1, "chain isn't Ethereum");
adapter = new WstEthStEthExchangeRateChainlinkAdapter();
morphoOracle = new MorphoChainlinkOracleV2(
vaultZero, 1, AggregatorV3Interface(address(adapter)), feedZero, 18, vaultZero, 1, feedZero, feedZero, 18
Expand Down

0 comments on commit 1a4ef4d

Please sign in to comment.