Skip to content

Question about running tests on chain forks in foundry fundamentals course #2985

Answered by heheboii11
accurec asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @accurec, as you can see you have used --fork-url, which means you are forking the chain locally on your computer. So you are not interacting with the real blockchain, you are creating a fork locally and. running the tests there. So you dont need to provide any private keys. If you want to test it on real chain instead of using --fork-url just use --rpc-url. Then you have to provide a private key and broadcast it to the chain. Hope this clears your doubt

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@accurec
Comment options

@accurec
Comment options

@EngrPips
Comment options

@heheboii11
Comment options

@EngrPips
Comment options

Answer selected by accurec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants