dojo icon indicating copy to clipboard operation
dojo copied to clipboard

Add warning message about limits at compilation

Open glihm opened this issue 7 months ago • 5 comments
trafficstars

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:

  1. Too big Sierra file (> 4MB)
  2. If casm is enabled, too much felts in the byte code (>81920 felts).

Limits reference: https://docs.starknet.io/resources/chain-info/#current_limits.

glihm avatar Apr 09 '25 15:04 glihm