Skip to content

Commit

Permalink
Remove goerli and update morpho tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zodahu committed May 13, 2024
1 parent 616f0ad commit 9a921bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 47 deletions.
1 change: 0 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ optimizer_runs = 10_000

[rpc_endpoints]
ethereum = "https://cloudflare-eth.com"
goerli = "https://rpc.ankr.com/eth_goerli"

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
42 changes: 0 additions & 42 deletions script/DeployGoerli.s.sol

This file was deleted.

2 changes: 1 addition & 1 deletion test/callbacks/MorphoFlashLoanCallback.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract MorphoFlashLoanCallbackTest is Test {
DataType.Input[] public inputsEmpty;

function setUp() external {
vm.createSelectFork(vm.rpcUrl('goerli'), 10310460);
vm.createSelectFork(vm.rpcUrl('ethereum'), 19850000);

user = makeAddr('User');
defaultCollector = makeAddr('defaultCollector');
Expand Down
6 changes: 3 additions & 3 deletions test/integration/Morpho.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {DataType} from 'src/libraries/DataType.sol';
import {MorphoFlashLoanCallback, IMorphoFlashLoanCallback, IMorpho} from 'src/callbacks/MorphoFlashLoanCallback.sol';

contract MorphoIntegrationTest is Test {
address public constant MORPHO = 0x64c7044050Ba0431252df24fEd4d9635a275CB41;
IERC20 public constant USDC = IERC20(0x62bD2A599664D421132d7C54AB4DbE3233f4f0Ae);
address public constant MORPHO = 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb;
IERC20 public constant USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);

address public user;
IRouter public router;
Expand All @@ -23,7 +23,7 @@ contract MorphoIntegrationTest is Test {
bytes[] public permit2DatasEmpty;

function setUp() external {
vm.createSelectFork(vm.rpcUrl('goerli'), 10310460);
vm.createSelectFork(vm.rpcUrl('ethereum'), 19850000);

user = makeAddr('User');
router = new Router(makeAddr('WrappedNative'), makeAddr('Permit2'), address(this));
Expand Down

0 comments on commit 9a921bd

Please sign in to comment.