pub fn tx_add_input(slate: &mut Slate, commit: Commitment) {
	let input = tx::Input {
		features: tx::OutputFeatures::Plain,
		commit,
	};
	let inputs = slate.tx.inputs_mut();
	inputs
		.binary_search(&input)
		.err()
		.map(|e| inputs.insert(e, input));
}
/// Add an input to a tx at the appropriate position
Add an input to a tx at the appropriate position
Add an input to a tx at the appropriate position
pub fn tx_add_input(slate: &mut Slate, commit: Commitment) {
	let input = tx::Input {
		features: tx::OutputFeatures::Plain,
		commit,
	};
	let inputs = slate.tx.inputs_mut();
	inputs
		.binary_search(&input)
		.err()
		.map(|e| inputs.insert(e, input));
}
pub fn tx_add_input ( slate : & mut Slate , commit : Commitment ) { let input = tx :: Input { features : tx :: OutputFeatures :: Plain , commit , } ; let inputs = slate . tx . inputs_mut ( ) ; inputs . binary_search ( & input ) . err ( ) . map ( | e | inputs . insert ( e , input ) ) ; }
Add an input to a tx at the appropriate position
Add an input to a tx at the appropriate position
slate
&mut Slate
commit
Commitment
slate
&mut Slate
commit
Commitment