PatrickAlphaC / nft-demo

37 stars 51 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 #27

Closed otm12345 closed 1 year ago

otm12345 commented 1 year ago

Brownie v1.19.3 - Python development framework for Ethereum

NftDemoProject is the active project.

Running 'scripts\advanced_collectible\create_collectible.py::main'... Transaction sent: 0x4eb46d1f15867577d9496c8c60496b70bbc4dc1ad2d8f8c4b8d2d65e0c029114 Gas price: 9.8e-08 gwei Gas limit: 38176 Nonce: 58 LinkToken.transfer confirmed Block: 9693374 Gas used: 34706 (90.91%)

LinkToken.transfer confirmed Block: 9693374 Gas used: 34706 (90.91%)

Funded 0x55b2439e9cd9EDA30ADdBB1Cb854e2C812E11a68 File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli\run.py", line 51, in main return_value, frame = run( File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\scripts.py", line 110, in run return_value = f_locals[method_name](*args, *kwargs) File ".\scripts\advanced_collectible\create_collectible.py", line 10, in main creation_transaction = advanced_collectible.createCollectible({"from": account}) File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 1864, in call return self.transact(args) File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 1737, in transact return tx["from"].transfer( File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\account.py", line 644, in transfer receipt, exc = self._make_transaction( File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\account.py", line 727, in _make_transaction raise VirtualMachineError(e) from None File "C:\Users\Computer.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\exceptions.py", line 93, in init raise ValueError(str(exc)) from None ValueError: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.

otm12345 commented 1 year ago

networks: goerli: vrf_coordinator: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D" link_token: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB" keyhash: "0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c" fee: 100000000000000000

otm12345 commented 1 year ago

hi @PatrickAlphaC i want to deploy my contract on goerli testnet but I always get this issues can you help me