ghost-dao-contracts/tester.sh
Uncle Fatso 02c0d51335
expose coefficient from treasury
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-10-07 18:22:58 +03:00

15 lines
473 B
Bash

# exclude all tests dependant on rpc
forge test --no-match-test test_mainnet_
echo ""
echo "#####################################"
echo "## Running mainnet dependant tests ##"
echo "#####################################"
echo ""
# url from the foundry, forge-std/StdChains.sol
FORK_URL="${1:-https://eth-mainnet.alchemyapi.io/v2/pwc5rmJhrdoaSEfimoKEmsvOjKSmPDrP}"
# run tests where rpc to the mainnet is needed
forge test --match-test test_mainnet_ --fork-url $FORK_URL