import { CallFlags , common , ScriptBuilder , ScriptBuilderParam , UInt160Hex } from '@neo-one/client-common' ; const getInvokeMethodInvocationScript = ( { method , params , } ) : Buffer => { const sb = new ScriptBuilder ( ) ; sb . emitAppCallInvocation ( method , CallFlags . All , ... params ) ; return sb . build ( ) ; } ; const getInvokeMethodScript = ( { scriptHash , method , params , } ) : Buffer => { const sb = new ScriptBuilder ( ) ; sb . emitDynamicAppCall ( common . stringToUInt160 ( scriptHash ) , method , CallFlags . All , ... params ) ; return sb . build ( ) ; } ; export const clientUtils = { getInvokeMethodInvocationScript , getInvokeMethodScript } ;