Skip to main content

E0039: Emit, raise, or runtime keyword needed

You called one of:

  • an event without emit, or
  • an effect without raise, or
  • a runtime function without runtime.

These functions have external side-effects and need the right keyword at their call site to acknowledge this.

How to fix

Use the appropriate keyword when calling events, effects, and runtime functions:

emit my_event();
let result = raise my_effect();
let height = runtime blockHeight();