MockOffChain.js is not picking winner because of chainId returning undefined #6127
Unanswered
SamarthBagga
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello @SamarthBagga Are you running your own node to use localhost network? If not you should be runnin this command like this |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to use the mockOffChain to pick a winner. But the problem is that although i did get Performed upkeep with RequestId, the winner was never picked so I added console logs to get to the problem and I came to know the chain id was returning undefined. Here is the console log and the code-
here is the code-
Beta Was this translation helpful? Give feedback.
All reactions