import { common } from '@neo-one/client-common' ; import { VMLog } from '@neo-one/node-core' ; export interface LogReturn { readonly containerHash ? : Buffer ; readonly callingScriptHash : Buffer ; readonly message : string ; readonly position : number ; } export const convertLog = ( { containerHash , callingScriptHash , message , position } ) : VMLog => ( { containerHash : containerHash ? common . asUInt256 ( containerHash ) : undefined , callingScriptHash : common . asUInt160 ( callingScriptHash ) , message , position } ) ;