File tree Expand file tree Collapse file tree 2 files changed +55
-52
lines changed Expand file tree Collapse file tree 2 files changed +55
-52
lines changed Original file line number Diff line number Diff line change @@ -289,13 +289,13 @@ impl<M: Message> Decodable for Action<M> {
289
289
290
290
#[ cfg( test) ]
291
291
mod tests {
292
- use rlp:: rlp_encode_and_decode_test;
293
-
294
292
use super :: * ;
293
+ use consensus:: solo:: SoloMessage ;
294
+ use rlp:: rlp_encode_and_decode_test;
295
295
296
296
#[ test]
297
297
fn decode_fail_if_change_params_have_no_signatures ( ) {
298
- let action = Action :: ChangeParams {
298
+ let action = Action :: < SoloMessage > :: ChangeParams {
299
299
metadata_seq : 3 ,
300
300
params : CommonParams :: default_for_test ( ) . into ( ) ,
301
301
signatures : vec ! [ ] ,
@@ -305,13 +305,13 @@ mod tests {
305
305
expected: 4 ,
306
306
got: 3 ,
307
307
} ) ,
308
- UntrustedRlp :: new( & rlp:: encode( & action) ) . as_val:: <Action > :: <_ >( )
308
+ UntrustedRlp :: new( & rlp:: encode( & action) ) . as_val:: <Action < SoloMessage > >( )
309
309
) ;
310
310
}
311
311
312
312
#[ test]
313
313
fn rlp_of_change_params ( ) {
314
- rlp_encode_and_decode_test ! ( Action :: ChangeParams {
314
+ rlp_encode_and_decode_test ! ( Action :: < SoloMessage > :: ChangeParams {
315
315
metadata_seq: 3 ,
316
316
params: CommonParams :: default_for_test( ) . into( ) ,
317
317
signatures: vec![ Signature :: random( ) , Signature :: random( ) ] ,
You can’t perform that action at this time.
0 commit comments