Open Sudhanmanoharan opened 2 years ago
Hi @PatrickAlphaC, can I get any update on the above error?.
Thanks, Sudhan
Thanks for making this issue. Do you have testnet LINK token? Can you send me an etherscan link to the transaction?
Thanks for the reply.
Rinkeby LINK
rinkeby:
eth_usd_price_feed: "0x8A753747A1Fa494EC906cE90E9f37563A8AF630e"
vrf_coordinator: "0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B"
link_token: "0x01BE23585060835E02B77ef475b0Cc51aA1e0709"
keyhash: "0x2ed0feb3e7fd2022120aa84fab1945545a9f2ffc9076fd6156fa96eaff4c1311"
fee: 1000000000000000000
verify: False
Etherscan Transaction Address [0x37988282462B1fb803Fad6FEbB5Bbe1Bd4Ccf104]
Stack Trace
macs-MacBook-Pro:NFT Sudhan$ brownie run scripts/deploy.py --network rinkeby Brownie v1.16.3 - Python development framework for Ethereum
NftProject is the active project.
Running 'scripts/deploy.py::main'... Transaction sent: 0xf45332724f4dda2c9688a324efc4c64ba5068c228658e15eb52aa100ab89d744 Gas price: 1.000000018 gwei Gas limit: 2441351 Nonce: 109 AdvanceCollectable.constructor confirmed Block: 9369341 Gas used: 2219410 (90.91%) AdvanceCollectable deployed at: 0x37988282462B1fb803Fad6FEbB5Bbe1Bd4Ccf104
Transaction sent: 0x2d8b08ba8176ed762f04d41ba56b3597bea4a01a4cb8fd262f4a82e67671afb1 Gas price: 1.000000017 gwei Gas limit: 56992 Nonce: 110 LinkToken.transfer confirmed Block: 9369342 Gas used: 51811 (90.91%)
LinkToken.transfer confirmed Block: 9369342 Gas used: 51811 (90.91%)
Funded 0x37988282462B1fb803Fad6FEbB5Bbe1Bd4Ccf104 File "brownie/_cli/run.py", line 49, in main return_value, frame = run( File "brownie/project/scripts.py", line 103, in run return_value = f_locals[method_name](*args, *kwargs) File "./scripts/deploy.py", line 22, in main deploy_advance_contract() File "./scripts/deploy.py", line 16, in deploy_advance_contract create_tx = advance_contract.createCollectible({"from": account}) File "brownie/network/contract.py", line 1693, in call return self.transact(args) File "brownie/network/contract.py", line 1566, in transact return tx["from"].transfer( File "brownie/network/account.py", line 642, in transfer receipt, exc = self._make_transaction( File "brownie/network/account.py", line 725, in _make_transaction raise VirtualMachineError(e) from None File "brownie/exceptions.py", line 121, 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.
Hi @PatrickAlphaC , can I get any update on the above error?.
Thanks, sudhan
Hi, yes, you need testnet LINK token. Check here for the most up to date rinkeby link testnet https://docs.chain.link/docs/link-token-contracts/
Hey @Sudhanmanoharan, please review brownie-config.yaml
rinkeby: vrf_coordinator: '0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B' link_token: '0x01BE23585060835E02B77ef475b0Cc51aA1e0709' keyhash: '0x2ed0feb3e7fd2022120aa84fab1945545a9f2ffc9076fd6156fa96eaff4c1311' fee: 100000000000000000
I faced the same issue as you and just reviewed these parameters. Now running ok. These addresses are from the training document and not from https://docs.chain.link/docs/vrf-contracts/. It is weird, but these ones from the documentation link are not working.
i am very confused about this probleme , my walllet has enough of gas and the link token address full of link but i still face the same error , can you help please. thanks
Hi @PatrickAlphaC, I'm facing one issue in the NFT application while trying to run in the Rinkeby network. Can you plz help me?
Gas estimation failed: 'invalid opcode: opcode 0xfe not defined'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.
Let me attach the screenshot.