def notification(args: List[Any]) -> Notification: for x in args: notify(x) n = get_notifications() if len(n) > 0: return n[0] return Notification()
def notification(args: List[Any]) -> Notification: for x in args: notify(x) n = get_notifications(executing_script_hash) if len(n) > 0: return n[0] return Notification()
def get_notifications_is_notification() -> bool: notify("unit_test") n = get_notifications() if len(n) > 0: return is_notification(n[0]) else: return False
def with_param(args: List[Any], key: UInt160) -> List[Notification]: notify_args(args) return get_notifications(key)
def without_param(args: List[Any]) -> List[Notification]: notify_args(args) return get_notifications()
def without_param(args: List[Any]) -> List[Notification]: notify_args(args) return get_notifications(executing_script_hash)