File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1174,6 +1174,16 @@ pub mod pallet {
1174
1174
Self :: deposit_event ( Event :: < T > :: SetMembers { members } ) ;
1175
1175
Ok ( ( ) )
1176
1176
}
1177
+
1178
+ #[ pallet:: call_index( 27 ) ]
1179
+ #[ pallet:: weight( <T as Config >:: WeightInfo :: update_incentive( ) ) ]
1180
+ #[ transactional]
1181
+ pub fn force_update_exchange_rate ( origin : OriginFor < T > , rate : Rate ) -> DispatchResult {
1182
+ T :: UpdateOrigin :: ensure_origin ( origin) ?;
1183
+ ExchangeRate :: < T > :: put ( rate) ;
1184
+ Self :: deposit_event ( Event :: < T > :: ExchangeRateUpdated ( rate) ) ;
1185
+ Ok ( ( ) )
1186
+ }
1177
1187
}
1178
1188
1179
1189
#[ pallet:: hooks]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
13
13
// The version of the runtime specification. A full node will not attempt to use its native
14
14
// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,
15
15
// `spec_version`, and `authoring_version` are the same between Wasm and native.
16
- spec_version : 10044 ,
16
+ spec_version : 10045 ,
17
17
impl_version : 0 ,
18
18
apis : RUNTIME_API_VERSIONS ,
19
19
transaction_version : 2 ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
16
16
// The version of the runtime specification. A full node will not attempt to use its native
17
17
// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,
18
18
// `spec_version`, and `authoring_version` are the same between Wasm and native.
19
- spec_version : 10044 ,
19
+ spec_version : 10045 ,
20
20
impl_version : 0 ,
21
21
apis : RUNTIME_API_VERSIONS ,
22
22
transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments