ghost-dao-contracts/tester.sh
Uncle Fatso d4c6583e12
make reserve dependant on calculator in tests and add testing script
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-10-07 14:19:55 +03:00

15 lines
493 B
Bash

# exclude all tests dependant on rpc
forge test --no-match-test test_tokenValueIsCorret
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_tokenValueIsCorret --fork-url $FORK_URL