Open drandreaskrueger opened 7 years ago
Hi,
I ran into the same problem. You are missing the "contracts" key/value. This worked for me:
{
"version":"7",
"compilation":{
"contracts_source_dirs": ["./contracts"],
"import_remappings": [],
"backend":{
"class":"populus.compilation.backends.SolcStandardJSONBackend",
"settings":{
"stdin":{
"optimizer":{
"enabled":true,
"runs":500
},
"outputSelection":{
"*":{
"*":[
"abi",
"metadata",
"evm.bytecode",
"evm.deployedBytecode"
]
}
}
}
}
}
},
"chains": {
"ext_chain": {
"chain": {
"class": "populus.chain.ExternalChain"
},
"web3": {
"provider": {
"class": "web3.providers.rpc.HTTPProvider",
"settings": {
"endpoint_uri": "http://127.0.0.1:8545"
}
}
},
"contracts": {
"backends": {
"JSONFile": {"$ref": "contracts.backends.JSONFile"},
"ProjectContracts": {
"$ref": "contracts.backends.ProjectContracts"
}
}
}
}
}
}
Ugh just burned an hour plus on this one too -- this should be in the docs somewhere. Added this: https://github.com/ethereum/populus/pull/439
What am I doing wrong?
When I do
it's all good, but then with
I get a
This is my project.json
I have my own parity instance running, on port 8545, on a private chain.
What haven't I understood?
Thanks a lot!
system info
(I have the version installed today, via pip)
Cute Animal Picture