Skip to content

Add warning message about limits at compilation #3149

Open
@glihm

Description

@glihm

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions