Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'DeploymentConfigCollection' object is not subscriptable #13

Open
Nishanth14 opened this issue May 27, 2024 · 0 comments
Open

Comments

@Nishanth14
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant