Skip to content

Commit

Permalink
Update deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aviggiano committed Jul 9, 2024
1 parent bc50f7d commit 6d9a33e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6d9a33e

Please sign in to comment.