def convert_notify_event(self, pytoken):
        """

        :param pytoken:
        :return:
        """
        event_action = None
        for action in self.method.module.actions:
            if action.method_name == pytoken.func_name:
                event_action = action
        if event_action is None:
            raise Exception("Event action not found")

        # push the event name
        event_name = event_action.event_name.encode('utf-8')
        self.convert_push_data(event_name, py_token=None)

        # push the num params
        self.convert_push_integer(len(event_action.event_args))

        # pack the array
        self.convert1(VMOp.PACK)

        # insert syscall
        syscall_name = 'Neo.Runtime.Notify'.encode('utf-8')
        length = len(syscall_name)
        ba = bytearray([length]) + bytearray(syscall_name)
        vmtoken = self.convert1(VMOp.SYSCALL, pytoken, data=ba)
#        self.insert1(VMOp.NOP)

        return vmtoken
def convert_notify_event ( self , pytoken ) : event_action = None for action in self . method . module . actions : if action . method_name == pytoken . func_name : event_action = action if event_action is None : raise Exception ( "Event action not found" ) event_name = event_action . event_name . encode ( 'utf-8' ) self . convert_push_data ( event_name , py_token = None ) self . convert_push_integer ( len ( event_action . event_args ) ) self . convert1 ( VMOp . PACK ) syscall_name = 'Neo.Runtime.Notify' . encode ( 'utf-8' ) length = len ( syscall_name ) ba = bytearray ( [ length ] ) + bytearray ( syscall_name ) vmtoken = self . convert1 ( VMOp . SYSCALL , pytoken , data = ba ) return vmtoken
:param pytoken:
        :return: