Description
A function for exporting CryticCompile object as an archive format to JSON file.
crytic-compile/crytic_compile/crytic_compile.py
Lines 556 to 575 in 3a4b0de
The above function calls the function that constructs a standard (archive) format object.
crytic-compile/crytic_compile/platform/standard.py
Lines 264 to 271 in 3a4b0de
We use the "compilation_units" as a key for a dictionary object.
However, when you look at a function importing CryticCompile object from a JSON file.
crytic-compile/crytic_compile/crytic_compile.py
Lines 524 to 546 in 3a4b0de
That function has a check routine as below.
crytic-compile/crytic_compile/crytic_compile.py
Lines 543 to 546 in 3a4b0de
It checks whether the dictionary object has a "compilations" key, and we can't pass this check.