import { hex2VarBytes , StringReader } from '../../utils' ; import Payload from './payload' ; export default class InvokeCode extends Payload { /**
     * Hex encoed string
     */ code : string ; constructor ( ) { super ( ) ; } serialize ( ) { let result = '' ; result += hex2VarBytes ( this . code ) ; return result ; } deserialize ( sr ) { const code = sr . readNextBytes ( ) ; this . code = code ; return this ; } }