mia
Hi,
Can you have a look please? I get this error in this chapter after I run the command:
- brownie run scripts/advanced_collectable/ create_collectable.py --network rinkeby
- ValueError: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.
here is what I wrote in create_collectable.py:

from brownie import AdvancedCollectable, accounts, config
from scripts.helpful_scripts import get_breed
import time


def main():
    dev = accounts.add(config["wallets"]["from_key"])
    advanced_collectable = AdvancedCollectable[len(AdvancedCollectable) - 1]
    transaction = advanced_collectable.createCollectable("None", {"from": dev})
    print("Waiting on second transaction...")
    # wait for the 2nd transaction
    transaction.wait(1)
    time.sleep(55)
    requestId = transaction.events["requestedCollectable"]["requestId"]
    token_id = advanced_collectable.requestIdToTokenId(requestId)
    breed = get_breed(advanced_collectable.tokenIdToBreed(token_id))
    print("Dog breed of tokenId {} is {}".format(token_id, breed))

here is therror

Capture d’écran (44).png
Reply 0 0
Reply