[SOLVED] Is the hint in the FireEditor wrong for the init function?

Hi @nikitafuchs.chain, I know that you are the main editor of the fire editor, is this hint wrong:

The init function should not be

public entrypoint init() =

but

stateful entrypoint init() =

Is that correct?

init doesn’t have to be stateful, also public is not needed here, as entrypoint implies public.

Good catch, fixed to correct and more beginner friendly stateful entrypoint init , like also seen in the example contract.

1 Like

hehe thanks! :slight_smile: happy that I could help