Closed antazoey closed 2 years ago
Latest everything
from manifest.json():
manifest.json()
Out[1]: '{"compilers":null,"contract_types":{"Interface":{"abi":[{"anonymous":null,"inputs":null,"name":"foo","outputs":null,"stateMutability":"nonpayable","type":"fallback"}],"deployment_bytecode":null,"devdoc":null,"name":"Interface","runtime_bytecode":null,"source_id":"Interface.json","sourcemap":null,"userdoc":null}},"dependencies":null,"deployments":null,"manifest":"ethpm/3","meta":null,"name":null,"sources":{"Interface.json":{"checksum":{"algorithm":"md5","hash":"aaf11362c066814f73d7db766ade0a0c"},"content":"[\\n {\\"name\\":\\"foo\\",\\"type\\":\\"fallback\\", \\"stateMutability\\":\\"nonpayable\\"}\\n]\\n","installPath":null,"license":null,"type":null,"urls":[]}},"version":null}'
from json.dumps(manifest.dict()):
json.dumps(manifest.dict())
Out[3]: '{"manifest": "ethpm/3", "sources": {"Interface.json": {"checksum": {"algorithm": "md5", "hash": "aaf11362c066814f73d7db766ade0a0c"}, "urls": [], "content": "[\\n {\\"name\\":\\"foo\\",\\"type\\":\\"fallback\\", \\"stateMutability\\":\\"nonpayable\\"}\\n]\\n"}}, "contractTypes": {"Interface": {"contractName": "Interface", "sourceId": "Interface.json", "abi": [{"name": "foo", "stateMutability": "nonpayable", "type": "fallback"}]}}}'
I am not sure which one is "right", but the `.json() is the one that causes errors for me.
I am not sure.
Looks like the nulls are probably the culprit
null
Environment information
Latest everything
What went wrong?
from
manifest.json()
:from
json.dumps(manifest.dict())
:I am not sure which one is "right", but the `.json() is the one that causes errors for me.
How can it be fixed?
I am not sure.