Skip to main content

note_script

Attribute Macro note_script 

Source
#[note_script]
Expand description

Marks a method as the note script entrypoint (#[note_script]).

The method must be contained within an inherent impl block annotated with #[note].

ยงSupported entrypoint signature

  • Receiver must be plain self (by value); &self, &mut self, mut self, and typed receivers (e.g. self: Box<Self>) are not supported.
  • The method must return ().
  • Excluding self, the method must accept:
    • exactly one Word argument, and
    • optionally a single &Account or &mut Account argument (in either order).
  • Generic methods and async fn are not supported.