setup failed error in $ forge test --fork-url $SEPOLIA_RPC_URL in lesson 9 #217
-
I am facing this problem in lesson 9
forge test works fine.How to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hello @Aishwaria8786, only with the error message is going to be difficult to help you, can you format your question according to these recommendations? |
Beta Was this translation helpful? Give feedback.
-
Hey, @Aishwaria8786, please provide the code in which you are facing problem. |
Beta Was this translation helpful? Give feedback.
-
Without seeing any code, code this also be a set up issue with Chainlink or the private key? I personally had this same error, but I was only getting it while testing locally (forked was fine). I missed adding deployerKey to the createSubscription functions. |
Beta Was this translation helpful? Give feedback.
-
I surprisingly solved the issue by by changing the subscriptionid to 0 in helperConfig.s.sol file . I would like to advise all to watch Patrick sir's video slowly. |
Beta Was this translation helpful? Give feedback.
-
I found the actual solution which is I create subscription on chainlink from one account but in env file I put private key of another account.I corrected it now it works fine with subscriptionid . |
Beta Was this translation helpful? Give feedback.
I found the actual solution which is I create subscription on chainlink from one account but in env file I put private key of another account.I corrected it now it works fine with subscriptionid .