diff --git a/.env.example b/.env.example index 738ff58..ca80b02 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,6 @@ SEARCHER_PK= # Mainnet rpc for the E2E Tests, should be the anvil url MAINNET_E2E_RPC= - ## For deployment scripts DEPLOYER_MAINNNET_PRIVATE_KEY= DEPLOYER_GOERLI_PRIVATE_KEY= diff --git a/package.json b/package.json index 3a2ae43..70c7807 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ }, "author": "Wonderland", "scripts": { + "anvil:mainnet": "anvil --port 8545 -f $MAINNET_RPC --fork-block-number 18621047 --chain-id 1", + "anvil:optimism": "anvil --port 9545 -f $OPTIMISM_RPC --fork-block-number 112491451 --chain-id 10", "build": "forge build", "build:optimized": "FOUNDRY_PROFILE=optimized forge build", "coverage": "forge coverage --match-contract Unit", diff --git a/solidity/test/e2e/Common.sol b/solidity/test/e2e/Common.sol index 3e1a23a..f346d5d 100644 --- a/solidity/test/e2e/Common.sol +++ b/solidity/test/e2e/Common.sol @@ -32,7 +32,6 @@ contract CommonE2EBase is DSTestPlus, TestConstants, Script { uint256 internal _mainnetForkId; uint256 internal _optimismForkId; - address internal _deployer = vm.rememberKey(vm.envUint('MAINNET_DEPLOYER_PK')); address internal _searcher = vm.rememberKey(vm.envUint('SEARCHER_PK'));