Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce chain id is 1 in tests #89

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading