def index @contracts = Corda::Contract[current_pod_name, current_org].all(**pagination_params, **search_params) end def show @contract = Corda::Contract[current_pod_name, current_org].find(params[:id]) @contract.cache_and_set_public_urls(current_org, request.base_url) contract = Contract.find_by(client_contract_id: @contract.client_contract_id) if contract.present? contract.corda_contract_id = @contract.corda_id contract.save! else Rails.logger.warn "corda record not found for client_contract_id:#{@contract.client_contract_id}" end end def create CreatePropose.call(contract_params, current_org, user_info) head :no_content end …….