Issue
Compiling provableAPI.sol yields 43 MB of JSON (6 files weighing ~7mb each).
Implications
For those of us who love Ganache, those huge JSON files cause Ganache UI to freeze as it tries to parse the compiled contracts, making it completely unusable.
I really want to work with Provable, but I can't ;-(
Reproduce
- Unbox truffle-starter
- Run
truffle compile
- See these 6 fat JSON files in the
build/contracts directory:
7.2M build/contracts/Buffer.json
7.2M build/contracts/CBOR.json
7.2M build/contracts/OracleAddrResolverI.json
7.2M build/contracts/ProvableI.json
7.2M build/contracts/solcChecker.json
7.2M build/contracts/usingProvable.json
This bloat can be attributed to the AST and legacyAST attributes, which contain the same 7 million bytes in each of the 6 JSON files.
My Environment
- Truffle v5.0.27
- Windows 10 64-bit
Note: Successfully reproduced in WSL (Ubuntu).
Is there another way to compile the Provable contract without getting this bloat?
Issue
Compiling provableAPI.sol yields 43 MB of JSON (6 files weighing ~7mb each).
Implications
For those of us who love Ganache, those huge JSON files cause Ganache UI to freeze as it tries to parse the compiled contracts, making it completely unusable.
I really want to work with Provable, but I can't ;-(
Reproduce
truffle compilebuild/contractsdirectory:This bloat can be attributed to the
ASTandlegacyASTattributes, which contain the same 7 million bytes in each of the 6 JSON files.My Environment
Note: Successfully reproduced in WSL (Ubuntu).
Is there another way to compile the Provable contract without getting this bloat?