inputs.js
function addIssueInput(serial_number){
			total_amount += issue_amount;
			var input = {
				type: "issue",
				amount: issue_amount,
				serial_number: serial_number
			};
			if (bMultiAuthored)
				input.address = issuer_address;
			var objInputWithProof = {input: input};
			if (objAsset && objAsset.is_private){
				var spend_proof = objectHash.getBase64Hash({
					asset: asset,
					amount: issue_amount,
					denomination: 1,
					address: issuer_address,
					serial_number: serial_number
				});
				var objSpendProof = {spend_proof: spend_proof};
				if (bMultiAuthored)
					objSpendProof.address = input.address;
				objInputWithProof.spend_proof = objSpendProof;
			}
			arrInputsWithProofs.push(objInputWithProof);
			var bFound = is_base ? (total_amount > required_amount) : (total_amount >= required_amount);
			bFound ? onDone(arrInputsWithProofs, total_amount) : finish();
		}
function addIssueInput(serial_number){
			total_amount += issue_amount;
			var input = {
				type: "issue",
				amount: issue_amount,
				serial_number: serial_number
			};
			if (bMultiAuthored)
				input.address = issuer_address;
			var objInputWithProof = {input: input};
			if (objAsset && objAsset.is_private){
				var spend_proof = objectHash.getBase64Hash({
					asset: asset,
					amount: issue_amount,
					denomination: 1,
					address: issuer_address,
					serial_number: serial_number
				});
				var objSpendProof = {spend_proof: spend_proof};
				if (bMultiAuthored)
					objSpendProof.address = input.address;
				objInputWithProof.spend_proof = objSpendProof;
			}
			arrInputsWithProofs.push(objInputWithProof);
			var bFound = is_base ? (total_amount > required_amount) : (total_amount >= required_amount);
			bFound ? onDone(arrInputsWithProofs, total_amount) : finish();
		}
function addIssueInput ( serial_number ) { total_amount += issue_amount ; var input = { type : "issue" , amount : issue_amount , serial_number : serial_number } ; if ( bMultiAuthored ) input . address = issuer_address ; var objInputWithProof = { input : input } ; if ( objAsset && objAsset . is_private ) { var spend_proof = objectHash . getBase64Hash ( { asset : asset , amount : issue_amount , denomination : 1 , address : issuer_address , serial_number : serial_number } ) ; var objSpendProof = { spend_proof : spend_proof } ; if ( bMultiAuthored ) objSpendProof . address = input . address ; objInputWithProof . spend_proof = objSpendProof ; } arrInputsWithProofs . push ( objInputWithProof ) ; var bFound = is_base ? ( total_amount > required_amount ) : ( total_amount >= required_amount ) ; bFound ? onDone ( arrInputsWithProofs , total_amount ) : finish ( ) ; }
1 currency unit in case required_amount = total_amount
1 currency unit in case required_amount = total_amount