deployDummyContract.sh 593 B

1234567891011121314
  1. #!/bin/bash
  2. [[ -z $MNEMONIC ]] && { echo "Missing MNEMONIC"; exit 1; }
  3. [[ -z $RPC_URL ]] && { echo "Missing RPC_URL"; exit 1; }
  4. [[ -z $NUM_RUNS ]] && { echo "Missing NUM_RUNS"; exit 1; }
  5. # Deploy dummy contract(s) to match devnet addresses in Anvil to what they originally were in Ganache
  6. # (the addresses depend on the number of contracts that have been previously deployed, and the wallet address, I believe!)
  7. forge script ./forge-scripts/DeployDummyContract.s.sol:DeployDummyContract \
  8. --sig "run(uint256)" $NUM_RUNS \
  9. --rpc-url "$RPC_URL" \
  10. --private-key "$MNEMONIC" \
  11. --broadcast