import { hex2VarBytes } from '../utils' ; import { TxType } from './../transaction/transaction' ; import { num2hexstring } from './../utils' ; import { TransactionNeo } from './TransactionNeo' ; export class InvocationTransaction extends TransactionNeo { script : string ; gas : number ; constructor ( ) { super ( ) ; this . type = TxType . Invoke ; } serializeExclusiveData ( ) { let result = '' ; result += hex2VarBytes ( this . script ) ; result += num2hexstring ( this . gas , 8 , true ) ; return result ; } }