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 {
132
132
let bytes = encode:: serialize ( & pset) ;
133
133
let pset_back = encode:: deserialize :: < PartiallySignedTransaction > ( & bytes) . unwrap ( ) ;
134
134
// 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) ;
137
136
assert_eq ! ( pset_back. outputs( ) [ 0 ] . get_abf( ) . unwrap( ) . unwrap( ) , abf) ;
138
137
}
139
138
}
Original file line number Diff line number Diff line change @@ -759,8 +759,18 @@ impl Map for Input {
759
759
Entry :: Occupied ( _) => return Err ( Error :: DuplicateKey ( raw_key) . into ( ) ) ,
760
760
} ,
761
761
}
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
+ }
762
771
}
763
772
}
773
+
764
774
_ => match self . unknown . entry ( raw_key) {
765
775
Entry :: Vacant ( empty_key) => {
766
776
empty_key. insert ( raw_value) ;
You can’t perform that action at this time.
0 commit comments