Skip to content

len(advancedCollectible) -1 out of range #93

@snowyaya

Description

@snowyaya

Hi,
I was trying to run the create_metadata.py, but got the error saying the len(Advanced_Collectible)-1 is out of range. More details of the error is shown as below.

I tried to pin the file to Pinata, which was successful, but not sure why Advanced_Collectible doesn't contain anything.
Any idea of the reason?

Brownie v1.17.2 - Python development framework for Ethereum

NftMixProject is the active project.

Launching 'ganache-cli --accounts 10 --hardfork istanbul --gasLimit 12000000 --mnemonic brownie --port 8545'...

Running 'scripts/advanced_collectible/create_metadata.py::main'...
Working on development
  File "brownie/_cli/run.py", line 50, 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/advanced_collectible/create_metadata.py", line 25, in main
    advanced_collectible = AdvancedCollectible[len(AdvancedCollectible) - 1]
  File "brownie/network/contract.py", line 173, in __getitem__
    return self._contracts[i]
IndexError: list index out of range
Terminating local RPC client...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions