0

ValueError: 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. Could someone please help me with what have I done by mistake? enter image description here

enter image description here

enter image description here

1
  • Can you include the code that causes the problem as text? That error is usually triggered by a fault in the contract code.
    – Ismael
    Dec 15, 2021 at 2:14

1 Answer 1

0

Try this on a dev net (do not do this on main-net):

def fund_with_link...
....
# arbitrary gasLimit amount...
    myAwesomeGasLimit = 50000 
    funding_tx = link_token.transfer(
                      contract_address, 
                      amount, 
                      {"from": account, "gasLimit": myAwesomeGasLimit}
                 )
....

further info

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.