File tree 3 files changed +5
-7
lines changed 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -349,10 +349,9 @@ where
349
349
ext:: deposit_event ( topics, data) ;
350
350
}
351
351
352
- fn invoke_runtime < O , V > ( buffer : & mut O , call_data : & V )
352
+ fn invoke_runtime < O > ( buffer : & mut O , call_data : & < Self as EnvTypes > :: Call )
353
353
where
354
354
O : scale:: Output + AsRef < [ u8 ] > + Reset ,
355
- V : scale:: Encode ,
356
355
{
357
356
buffer. reset ( ) ;
358
357
call_data. encode_to ( buffer) ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ use crate::{
65
65
} ,
66
66
storage:: Key ,
67
67
} ;
68
+ use scale:: Encode ;
68
69
69
70
thread_local ! {
70
71
/// The single thread-local test environment instance.
@@ -420,10 +421,9 @@ where
420
421
} )
421
422
}
422
423
423
- fn invoke_runtime < O , V > ( _buffer : & mut O , call_data : & V )
424
+ fn invoke_runtime < O > ( _buffer : & mut O , call_data : & < Self as EnvTypes > :: Call )
424
425
where
425
426
O : scale:: Output + AsRef < [ u8 ] > + Reset ,
426
- V : scale:: Encode ,
427
427
{
428
428
// With the off-chain test environment we have no means
429
429
// to emit an event on the chain since there is no chain.
Original file line number Diff line number Diff line change @@ -147,10 +147,9 @@ pub trait Env:
147
147
Event : Topics < Self > + scale:: Encode ;
148
148
149
149
/// Invokes a runtime dispatchable function with the given call data.
150
- fn invoke_runtime < O , V > ( buffer : & mut O , call_data : & V )
150
+ fn invoke_runtime < O > ( buffer : & mut O , call_data : & < Self as EnvTypes > :: Call )
151
151
where
152
- O : scale:: Output + AsRef < [ u8 ] > + Reset ,
153
- V : scale:: Encode ;
152
+ O : scale:: Output + AsRef < [ u8 ] > + Reset ;
154
153
155
154
/// Restores the contract to the given address.
156
155
///
You can’t perform that action at this time.
0 commit comments