Skip to main content

E0040: Emit, raise, or runtime keyword mismatch

You used the emit, raise, or runtime keyword to call a function that needs a different keyword.

Example

let result = emit my_effect();

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();