File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ mod test {
132132 let bytes = encode:: serialize ( & pset) ;
133133 let pset_back = encode:: deserialize :: < PartiallySignedTransaction > ( & bytes) . unwrap ( ) ;
134134 // Check the abf
135- // FIXME: input abf should be there
136- assert ! ( pset_back. inputs( ) [ 0 ] . get_abf( ) . is_none( ) ) ;
135+ assert_eq ! ( pset_back. inputs( ) [ 0 ] . get_abf( ) . unwrap( ) . unwrap( ) , abf) ;
137136 assert_eq ! ( pset_back. outputs( ) [ 0 ] . get_abf( ) . unwrap( ) . unwrap( ) , abf) ;
138137 }
139138}
Original file line number Diff line number Diff line change @@ -759,8 +759,18 @@ impl Map for Input {
759759 Entry :: Occupied ( _) => return Err ( Error :: DuplicateKey ( raw_key) . into ( ) ) ,
760760 } ,
761761 }
762+ } else {
763+ match self . proprietary . entry ( prop_key) {
764+ Entry :: Vacant ( empty_key) => {
765+ empty_key. insert ( raw_value) ;
766+ }
767+ Entry :: Occupied ( _) => {
768+ return Err ( Error :: DuplicateKey ( raw_key) . into ( ) )
769+ }
770+ }
762771 }
763772 }
773+
764774 _ => match self . unknown . entry ( raw_key) {
765775 Entry :: Vacant ( empty_key) => {
766776 empty_key. insert ( raw_value) ;
You can’t perform that action at this time.
0 commit comments