diff --git a/README.md b/README.md index 5d0165f9..c3ab494d 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,7 @@ for i in {0..5}; do halmos --loop $i; done ```bash source .env -CHAIN_NAME=$CHAIN_NAME DEPLOYER_ADDRESS=$DEPLOYER_ADDRESS yarn deploy-testnet --broadcast +RCP_URL=$RPC_URL CHAIN_NAME=$CHAIN_NAME DEPLOYER_ADDRESS=$DEPLOYER_ADDRESS yarn deploy-testnet --broadcast ``` ## Onchain diff --git a/foundry.toml b/foundry.toml index cbf0d14f..b97dfa83 100644 --- a/foundry.toml +++ b/foundry.toml @@ -21,6 +21,7 @@ [rpc_endpoints] sepolia = "https://sepolia.infura.io/v3/${API_KEY_INFURA}" + base_sepolia = "https://base-sepolia.infura.io/v3/${API_KEY_INFURA}" anvil = "http://127.0.0.1:8545" [etherscan] diff --git a/package.json b/package.json index 0a2bf656..cd6a2bc5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "solhint": "solhint \"src/**/*.sol\" --max-warnings 0", "get-libraries": "(j=$((0x10)); find src/libraries test/helpers/libraries -type f | sed 's/.*\\///' | sed 's/.sol//' | while read i; do echo -n \"($i,$(printf \"0x%x\" $j))\\n\";j=$((j+1));done) | paste -sd, -", - "deploy-testnet": "forge script script/Deploy.s.sol --rpc-url sepolia --gas-limit 30000000 --sender $DEPLOYER_ADDRESS --account size-testnet-5 --ffi --verify", + "deploy-testnet": "forge script script/Deploy.s.sol --rpc-url $RPC_URL --gas-limit 30000000 --sender $DEPLOYER_ADDRESS --account size-testnet-5 --ffi --verify", "echidna-property": "echidna . --contract CryticTester --config echidna.yaml --test-mode property", "echidna-assertion": "echidna . --contract CryticTester --config echidna.yaml --test-mode assertion", "echidna-coverage": "open $(find echidna -name '*.html' | sort | tail -1)", diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index e6eeea64..60c5f739 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -22,7 +22,7 @@ contract DeployScript is BaseScript, Networks, Deploy { function setUp() public {} modifier parseEnv() { - deployer = vm.envOr("DEPLOYER_ADDRESS", vm.deriveKey(TEST_MNEMONIC, 0)); + deployer = vm.envOr("DEPLOYER_ADDRESS", vm.addr(vm.deriveKey(TEST_MNEMONIC, 0))); owner = vm.envOr("OWNER", address(0)); feeRecipient = vm.envOr("FEE_RECIPIENT", address(0)); chainName = vm.envOr("CHAIN_NAME", TEST_CHAIN_NAME);