apeworx-starter-kit icon indicating copy to clipboard operation
apeworx-starter-kit copied to clipboard

TypeError: 'DeploymentConfigCollection' object is not subscriptable

Open Nishanth14 opened this issue 1 year ago • 0 comments

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]

Nishanth14 avatar May 27 '24 21:05 Nishanth14