File tree Expand file tree Collapse file tree 2 files changed +55
-50
lines changed Expand file tree Collapse file tree 2 files changed +55
-50
lines changed Original file line number Diff line number Diff line change @@ -325,10 +325,12 @@ mod tests {
325
325
use rlp:: rlp_encode_and_decode_test;
326
326
327
327
use super :: * ;
328
+ use consensus:: solo:: SoloMessage ;
329
+ use rlp:: rlp_encode_and_decode_test;
328
330
329
331
#[ test]
330
332
fn decode_fail_if_change_params_have_no_signatures ( ) {
331
- let action = Action :: ChangeParams {
333
+ let action = Action :: < SoloMessage > :: ChangeParams {
332
334
metadata_seq : 3 ,
333
335
params : CommonParams :: default_for_test ( ) . into ( ) ,
334
336
signatures : vec ! [ ] ,
@@ -338,13 +340,13 @@ mod tests {
338
340
expected: 4 ,
339
341
got: 3 ,
340
342
} ) ,
341
- UntrustedRlp :: new( & rlp:: encode( & action) ) . as_val:: <Action > :: <_ >( )
343
+ UntrustedRlp :: new( & rlp:: encode( & action) ) . as_val:: <Action < SoloMessage > >( )
342
344
) ;
343
345
}
344
346
345
347
#[ test]
346
348
fn rlp_of_change_params ( ) {
347
- rlp_encode_and_decode_test ! ( Action :: ChangeParams {
349
+ rlp_encode_and_decode_test ! ( Action :: < SoloMessage > :: ChangeParams {
348
350
metadata_seq: 3 ,
349
351
params: CommonParams :: default_for_test( ) . into( ) ,
350
352
signatures: vec![ Signature :: random( ) , Signature :: random( ) ] ,
You can’t perform that action at this time.
0 commit comments