es/contract/aci.js
function getFunctionACI (aci, name) {
  const fn = aci.functions.find(f => f.name === name)
  if (!fn && name !== 'init') throw new Error(`Function ${name} doesn't exist in contract`)

  return fn
}
function getFunctionACI (aci, name) {
  const fn = aci.functions.find(f => f.name === name)
  if (!fn && name !== 'init') throw new Error(`Function ${name} doesn't exist in contract`)

  return fn
}
function getFunctionACI ( aci , name ) { const fn = aci . functions . find ( f => f . name === name ) if ( ! fn && name !== 'init' ) throw new Error ( ` ${ name } ` ) return fn }
Get function schema from contract ACI object
@param {Object} aci Contract ACI object
@param {String} name Function name
@return {Object} function ACI
Get function schema from contract ACI object