File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -215,20 +215,16 @@ impl Decode for DoughnutV0 {
215
215
let mut signature = [ 0_u8 ; 64 ] ;
216
216
input. read ( & mut signature) ?;
217
217
218
- if input. read_byte ( ) . is_ok ( ) {
219
- Err ( codec:: Error :: from ( "Doughnut contains unexpected bytes" ) )
220
- } else {
221
- Ok ( Self {
222
- holder,
223
- issuer,
224
- expiry,
225
- not_before,
226
- signature_version,
227
- payload_version,
228
- domains,
229
- signature : H512 :: from ( signature) ,
230
- } )
231
- }
218
+ Ok ( Self {
219
+ holder,
220
+ issuer,
221
+ expiry,
222
+ not_before,
223
+ signature_version,
224
+ payload_version,
225
+ domains,
226
+ signature : H512 :: from ( signature) ,
227
+ } )
232
228
}
233
229
}
234
230
@@ -579,6 +575,8 @@ mod test {
579
575
) ;
580
576
}
581
577
578
+ // TODO: reconcile once https://github.com/cennznet/doughnut-rs/issues/67 is solved
579
+ #[ ignore]
582
580
#[ test]
583
581
fn decode_error_with_too_many_bytes ( ) {
584
582
let doughnut = doughnut_builder ! ( ) ;
You can’t perform that action at this time.
0 commit comments