code: 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
  }
docs: Get function schema from contract ACI object
  @param {Object} aci Contract ACI object
  @param {String} name Function name
  @return {Object} function ACI