PatrickAlphaC / smartcontract-lottery

MIT License
79 stars 113 forks source link

ValueError: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually. #77

Closed PrathamGit-dev closed 2 years ago

PrathamGit-dev commented 2 years ago

image after the print statement of lottery balance, the next transaction of ending the lottery is not completing and showing the following error.

image

PatrickAlphaC commented 2 years ago

Interesting... do your tests pass? Could you try to re pull the repo from scratch?

PrathamGit-dev commented 2 years ago

Wrongly put wrong keyhash and fee(VRF2 instead of VRF1) in config, and hence transaction was reverting(). Now working fine. Thanks for replying.