method name
This section is a work in progress.
Examples:
from kybra import ic, inspect_message, update, void
@inspect_message
def inspect_message_() -> void:
ic.print("inspect_message called")
if ic.method_name() == "accessible":
ic.accept_message()
return
if ic.method_name() == "inaccessible":
return
raise Exception("Method " + ic.method_name() + " is not allowed")
@update
def accessible() -> bool:
return True
@update
def inaccessible() -> bool:
return False
@update
def also_inaccessible() -> bool:
return False