transactionssolidityrevertbrownie

Execution reverted during call: This transaction will likely revert. If you wish to broadcast, include `allow_revert:True`


I'm trying to make a transaction to create an NFT collectible and the transaction gets reverted with the message: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually. when I add the max gas limit it stills revert.


Solution

  • I had the same issue. After 2 hours lost I found the problem. I was using the wrong version of vrf coordinator. As you can see on the following, I was viewing the VRF v2 guide but my code was using the vrf v1 and thus I was using the wrong contract address and keyhash. In order to fix it, I clicked on VRF v1 guide, and I retrieved the contract address and keyhash from there. Now it is working. https://docs.chain.link/docs/vrf-contracts/ enter image description here