File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ impl TransactionBuilder {
597597 . cloned ( )
598598 . collect :: < Vec < TransactionOutput > > ( ) ;
599599 outputs. sort_by_key ( |output| by ( & output. amount ) . expect ( "filtered above" ) ) ;
600- let mut avaible_coins = by ( input_total) . unwrap_or ( BigNum :: zero ( ) ) ;
600+ let available_coins = by ( input_total) . unwrap_or ( BigNum :: zero ( ) ) ;
601601 for output in outputs. iter ( ) . rev ( ) {
602602 // TODO: how should we adapt this to inputs being associated when running for other assets?
603603 // if we do these two phases for each asset and don't take into account the other runs for other assets
@@ -614,7 +614,7 @@ impl TransactionBuilder {
614614 // we try and subtract all other assets b != a from the outputs we're trying to cover.
615615 // It might make sense to diverge further and not consider it per-output and to instead just match against
616616 // the sum of all outputs as one single value.
617- let mut added = avaible_coins . clone ( ) ;
617+ let mut added = available_coins . clone ( ) ;
618618 let needed = by ( & output. amount ) . unwrap ( ) ;
619619 while added < needed {
620620 if relevant_indices. is_empty ( ) {
@@ -633,7 +633,7 @@ impl TransactionBuilder {
633633 . or_default ( )
634634 . push ( i) ;
635635 }
636- avaible_coins = added. checked_sub ( & needed) ?;
636+ available_coins = added. checked_sub ( & needed) ?;
637637 }
638638 if !relevant_indices. is_empty ( ) && pure_ada {
639639 // Phase 2: Improvement
You can’t perform that action at this time.
0 commit comments