Open
Description
Currently, Sozo has some --stats
options to display the size of contracts when compiled.
However, this is not something that will emit a warning during compilation, and sometimes it's hard for users to understand why the declaration of a class is failing.
In this issue, the idea is to add a warning message during compilation if we detect:
- Too big Sierra file (> 4MB)
- If
casm
is enabled, too much felts in the byte code (>81920 felts).
Limits reference: https://docs.starknet.io/resources/chain-info/#current_limits.