Lesson#9: Can't call performUpkeep() manually from etherscan #5675
Replies: 8 comments 5 replies
-
@juliancabmar |
Beta Was this translation helpful? Give feedback.
-
I re-check the constructor arguments but nothing, so... I cloned the lesson#9 repository, put my sepolia Private key in the .env and I make two tests with the performUpkeep() call, one in the localhost network (opening a node) and another in the sepolia network This is my script: Far I can see, in the two cases the trasnsaction encounter the calculate_gas error, but in locahost was reverted by the custom Raffle__UpkeepNotNeeded. I totally loss now.... any ideas? PD: Oh.. by the way, I call performUpkeep() from etherscan too.... same error. :( |
Beta Was this translation helpful? Give feedback.
-
Hi Bobltu thanks for answer and sorry for the delay. I follow all steps point by point but I still getting the same error on performUpkeep call. You can share with me your contract address for testing? Here is my helper-hardhat-config and my .env file (I dont care share it): |
Beta Was this translation helpful? Give feedback.
-
Do you have to call performeUpKeep manually?? I don't know for sure.But I think we cant call performeUpKeep manually. |
Beta Was this translation helpful? Give feedback.
-
@juliancabmar |
Beta Was this translation helpful? Give feedback.
-
Thanks to all for the answers. Yes, you are right aankeet... I updated the helper-hardhat-config.js, re-compiled and re-deploy, but the error persist. Regards. |
Beta Was this translation helpful? Give feedback.
-
Here I share my repo (with the .env included) https://github.com/juliancabmar/public-lottery-FCC.git try it and give me feedback please. Thanks o lot. |
Beta Was this translation helpful? Give feedback.
-
Finally!!! Thanks a lot aaankeet for all the effort. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello to all o/
After of many attemps with my own Raffle contract, I deploy to sepolia the Patrick's contract (https://sepolia.etherscan.io/address/0x87376Fc5eFD5Dac63BB202Ed1B7838eDa39C4371), but I can't call manually the performUpkeep() function. I try with 0x and "0x" for arguments, but I still geetting the same "can't estimate gas" from Metamask and after ignore this, the transaction was reverted. So, if I can't do this manually... Chainlink keepers can't too.
Thanks a lot people.
Beta Was this translation helpful? Give feedback.
All reactions