Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i run this demo on local chain. #16

Open
yzjsbsb opened this issue Oct 22, 2021 · 0 comments
Open

how can i run this demo on local chain. #16

yzjsbsb opened this issue Oct 22, 2021 · 0 comments

Comments

@yzjsbsb
Copy link

yzjsbsb commented Oct 22, 2021

Because i notice that in demo_enviroment.js,
//uniswap const IRouter = require('@uniswap/v2-periphery/build/IUniswapV2Router02.json') const uRouter = new web3.eth.Contract(IRouter.abi,'0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D') //sushiswap const sRouter = new web3.eth.Contract(IRouter.abi,'0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F')
You use '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'and '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F',they are the real address in Mainnet,and i want to know what it is 'ganache-cli --fork https://eth-mainnet.alchemyapi.io/v2/qolQHYLqPhksKzW-QBEzlzdW14pRZnTr -b 2 -d' work for, does it means run the local chain?Anyway, thx~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant