Is there a way to fork multiple chains in my hardhat.confg? #5135
IceCreamSandwich98
started this conversation in
General
Replies: 1 comment
-
@IceCreamSandwich98 Yes you can spin up multiple nodes but I think in the configurations you can only do one. Here you can see link |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make my own project, but i want to use a forked ethereum mainnet, and a forked polygon mainnet. Ive attached my javascript file first to show my though process. I want to do a try catch, and if it catches this exact error, i want to change the network. Below this will be my hardhat.config file. This is my first time doing my own project and this is my first big roadblock. Any help is appreciated!
here is my hardhat.config. Here i have hardhat forking eth mainnet by default. Is there a way javascript can go into hardhat, reassign the forking : { url: MAINNET_RPC_URL}
with forking: {url : POLYGON_RPC_URL}
Beta Was this translation helpful? Give feedback.
All reactions