fabric-client/lib/Channel.js
function _getProposalResponseResults(proposal_response) {
	if (!proposal_response.payload) {
		throw new Error('Parameter must be a ProposalResponse Object');
	}
	const payload = _responseProto.ProposalResponsePayload.decode(proposal_response.payload);
	const extension = _proposalProto.ChaincodeAction.decode(payload.extension);
	// TODO should we check the status of this action
	logger.debug('_getWriteSet - chaincode action status:%s message:%s', extension.response.status, extension.response.message);
	// return a buffer object which has an equals method
	return extension.results.toBuffer();
}
function _getProposalResponseResults(proposal_response) {
	if (!proposal_response.payload) {
		throw new Error('Parameter must be a ProposalResponse Object');
	}
	const payload = _responseProto.ProposalResponsePayload.decode(proposal_response.payload);
	const extension = _proposalProto.ChaincodeAction.decode(payload.extension);
	// TODO should we check the status of this action
	logger.debug('_getWriteSet - chaincode action status:%s message:%s', extension.response.status, extension.response.message);
	// return a buffer object which has an equals method
	return extension.results.toBuffer();
}
function _getProposalResponseResults ( proposal_response ) { if ( ! proposal_response . payload ) { throw new Error ( 'Parameter must be a ProposalResponse Object' ) ; } const payload = _responseProto . ProposalResponsePayload . decode ( proposal_response . payload ) ; const extension = _proposalProto . ChaincodeAction . decode ( payload . extension ) ; // TODO should we check the status of this action logger . debug ( '_getWriteSet - chaincode action status:%s message:%s' , extension . response . status , extension . response . message ) ; // return a buffer object which has an equals method return extension . results . toBuffer ( ) ; }
internal utility method to decode and get the write set from a proposal response
internal utility method to decode and get the write set from a proposal response