fabric-network/lib/contract.js
function verifyTransactionName(name) {
	if (typeof name !== 'string' || name.length === 0) {
		const msg = util.format('Transaction name must be a non-empty string: %j', name);
		logger.error('verifyTransactionName:', msg);
		throw new Error(msg);
	}
}
function verifyTransactionName(name) {
	if (typeof name !== 'string' || name.length === 0) {
		const msg = util.format('Transaction name must be a non-empty string: %j', name);
		logger.error('verifyTransactionName:', msg);
		throw new Error(msg);
	}
}
function verifyTransactionName ( name ) { if ( typeof name !== 'string' || name . length === 0 ) { const msg = util . format ( 'Transaction name must be a non-empty string: %j' , name ) ; logger . error ( 'verifyTransactionName:' , msg ) ; throw new Error ( msg ) ; } }
Ensure transaction name is a non-empty string.
@private
@param {*} name Transaction name.
@throws {Error} if the name is invalid.
Ensure transaction name is a non - empty string .