Skip to content

Remove annoying log message during compilation #435

@rpanic

Description

@rpanic

On StateServiceProvider:32 we have a log line
"Trying to pop from empty state-service stack"
which warns when we try to pop a state service fromt the stack but don't have anything on there. The original idea was to prevent nasty programming bugs, but this now leads to trace log messages during compilation (since we obviously don't have any state services on the stack for that.

The above get stateService() isn't called there because it's only used inside witness blocks, which aren't evaluated for compilation or proving.
Maybe we should call pop in such a block as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions