@@ -67,10 +67,10 @@ def web3(ganache: GanacheInstance):
6767
6868@pytest .fixture (scope = "module" )
6969def ganache () -> Generator [GanacheInstance , None , None ]:
70- """Fixture that runs ganache-cli which has forked off mainnet"""
71- if not shutil .which ("ganache-cli " ):
70+ """Fixture that runs ganache which has forked off mainnet"""
71+ if not shutil .which ("ganache" ):
7272 raise Exception (
73- "ganache-cli was not found in PATH, you can install it with `npm install -g ganache-cli `"
73+ "ganache was not found in PATH, you can install it with `npm install -g ganache`"
7474 )
7575 if "PROVIDER" not in os .environ :
7676 raise Exception (
@@ -79,7 +79,7 @@ def ganache() -> Generator[GanacheInstance, None, None]:
7979
8080 port = 10999
8181 p = subprocess .Popen (
82- f"ganache-cli --port { port } -s test --networkId 1 --fork { os .environ ['PROVIDER' ]} " ,
82+ f"ganache --port { port } -s test --networkId 1 --fork { os .environ ['PROVIDER' ]} " ,
8383 shell = True ,
8484 )
8585 # Address #1 when ganache is run with `-s test`, it starts with 100 ETH
@@ -105,7 +105,7 @@ class TestUniswap(object):
105105 ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"
106106
107107 # TODO: Detect mainnet vs rinkeby and set accordingly, like _get_token_addresses in the Uniswap class
108- # For Mainnet testing (with `ganache-cli --fork` as per the ganache fixture)
108+ # For Mainnet testing (with `ganache --fork` as per the ganache fixture)
109109 eth = "0x0000000000000000000000000000000000000000"
110110 weth = Web3 .toChecksumAddress ("0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" )
111111 bat = Web3 .toChecksumAddress ("0x0D8775F648430679A709E98d2b0Cb6250d2887EF" )
0 commit comments