Skip to content

TypeError: 'DeploymentConfigCollection' object is not subscriptable #13

@Nishanth14

Description

@Nishanth14

Deploying to ethereum:sepolia:alchemy gives below error

Ape command:
ape run scripts/deploy_price_feed_consumer.py --network ethereum:sepolia:alchemy

Error:
File "/Users/yalam/Documents/chainlink/apeworx-starter-kit/scripts/helper_functions.py", line 86, in get_or_deploy_contract
for contract_and_address in config.deployments[ecosystem][chain_name]
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'DeploymentConfigCollection' object is not subscriptable

Temporary Fix:
Change line 86 in helper_function.py

for contract_and_address in config.deployments[ecosystem][chain_name]

to

for contract_and_address in config.deployments.dict()[ecosystem][chain_name]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions