Closed Niraj-Kamdar closed 2 years ago
is this on the main branch or feat/v1
? all the active work is on the latter at the moment, so please make sure you're working off that
we'll push everything back to master
soon to simplify things
Yes I am on feat/v1
branch
Hello @Niraj-Kamdar
I'm not sure if the test suite is supposed to be green on this branch, yet. @cesarsld can chime in more.
This can be fixed by adding .env
with WEB3_INFURA_PROJECT_ID=xyz
and running brownie test with
brownie test --network mainnet-fork
Although this would require Infura API key with high rate limit or we need to selectively run tests one by one to not trigger rate limit.
I would recommend adding .env.sample
in repo and the above command to run test in README
Ah yes, these are supposed to be forked from the latest block on mainnet.
Yes, I agree adding these commands and instructions to the README and a .env.example
(we use example instead of sample in the other repos) would be great. Do you want to go ahead and create that PR and close this issue? @Niraj-Kamdar
Yeah sure
brownie test are failing since the
usdc
contract isn’t deployedHere’s error:
Let me know if I am missing something while setting env up.