Closed milancermak closed 2 years ago
I'd like to suggest a new rule:
There should be a warning if an event is being emitted from a @view function.
@view
Granted, the rule is somewhat subjective, but I don't see a point in emitting from a @view. WDYT?
Hi @milancermak , this makes sense because emitting an event causes a state change. This will be addressed in a future iteration of https://github.com/crytic/amarna/pull/42
I'd like to suggest a new rule:
There should be a warning if an event is being emitted from a
@view
function.Granted, the rule is somewhat subjective, but I don't see a point in emitting from a
@view
. WDYT?