File tree 4 files changed +34
-1
lines changed
4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ pub mod pallet {
457
457
// or if the account has no provider references.
458
458
// In both cases, the reward is lost but this can be ignored since it's extremely unlikely
459
459
// to appear and doesn't bring any real harm.
460
- T :: Currency :: deposit_creating ( account, reward) ;
460
+ let _ = T :: Currency :: deposit_creating ( account, reward) ;
461
461
Ok ( ( ) )
462
462
}
463
463
}
Original file line number Diff line number Diff line change @@ -363,6 +363,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
363
363
. expect ( "Must succeed in test/benchmark environment." ) ;
364
364
}
365
365
}
366
+ #[ cfg( feature = "runtime-benchmarks" ) ]
367
+ impl < SC , ACC > orml_oracle:: BenchmarkHelper < CurrencyId , FixedU128 , ConstU32 < 2 > >
368
+ for BenchmarkHelper < SC , ACC >
369
+ {
370
+ fn get_currency_id_value_pairs ( ) -> sp_runtime:: BoundedVec < ( CurrencyId , FixedU128 ) , ConstU32 < 2 > >
371
+ {
372
+ sp_runtime:: BoundedVec :: default ( )
373
+ }
374
+ }
366
375
367
376
pub struct AccountCheck ;
368
377
impl DappStakingAccountCheck < AccountId > for AccountCheck {
@@ -1119,6 +1128,8 @@ impl orml_oracle::Config for Runtime {
1119
1128
type MaxFeedValues = ConstU32 < 2 > ;
1120
1129
#[ cfg( not( feature = "runtime-benchmarks" ) ) ]
1121
1130
type MaxFeedValues = ConstU32 < 1 > ;
1131
+ #[ cfg( feature = "runtime-benchmarks" ) ]
1132
+ type BenchmarkHelper = BenchmarkHelper < SmartContract < AccountId > , AccountId > ;
1122
1133
}
1123
1134
1124
1135
impl pallet_membership:: Config < OracleMembershipInst > for Runtime {
Original file line number Diff line number Diff line change @@ -434,6 +434,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
434
434
. expect ( "Must succeed in test/benchmark environment." ) ;
435
435
}
436
436
}
437
+ #[ cfg( feature = "runtime-benchmarks" ) ]
438
+ impl < SC , ACC > orml_oracle:: BenchmarkHelper < CurrencyId , FixedU128 , ConstU32 < 2 > >
439
+ for BenchmarkHelper < SC , ACC >
440
+ {
441
+ fn get_currency_id_value_pairs ( ) -> sp_runtime:: BoundedVec < ( CurrencyId , FixedU128 ) , ConstU32 < 2 > >
442
+ {
443
+ sp_runtime:: BoundedVec :: default ( )
444
+ }
445
+ }
437
446
438
447
pub struct AccountCheck ;
439
448
impl DappStakingAccountCheck < AccountId > for AccountCheck {
@@ -1217,6 +1226,8 @@ impl orml_oracle::Config for Runtime {
1217
1226
type MaxFeedValues = ConstU32 < 2 > ;
1218
1227
#[ cfg( not( feature = "runtime-benchmarks" ) ) ]
1219
1228
type MaxFeedValues = ConstU32 < 1 > ;
1229
+ #[ cfg( feature = "runtime-benchmarks" ) ]
1230
+ type BenchmarkHelper = BenchmarkHelper < SmartContract < AccountId > , AccountId > ;
1220
1231
}
1221
1232
1222
1233
impl pallet_membership:: Config < OracleMembershipInst > for Runtime {
Original file line number Diff line number Diff line change @@ -388,6 +388,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
388
388
. expect ( "Must succeed in test/benchmark environment." ) ;
389
389
}
390
390
}
391
+ #[ cfg( feature = "runtime-benchmarks" ) ]
392
+ impl < SC , ACC > orml_oracle:: BenchmarkHelper < CurrencyId , FixedU128 , ConstU32 < 2 > >
393
+ for BenchmarkHelper < SC , ACC >
394
+ {
395
+ fn get_currency_id_value_pairs ( ) -> sp_runtime:: BoundedVec < ( CurrencyId , FixedU128 ) , ConstU32 < 2 > >
396
+ {
397
+ sp_runtime:: BoundedVec :: default ( )
398
+ }
399
+ }
391
400
392
401
pub struct AccountCheck ;
393
402
impl DappStakingAccountCheck < AccountId > for AccountCheck {
@@ -1120,6 +1129,8 @@ impl orml_oracle::Config for Runtime {
1120
1129
type MaxFeedValues = ConstU32 < 2 > ;
1121
1130
#[ cfg( not( feature = "runtime-benchmarks" ) ) ]
1122
1131
type MaxFeedValues = ConstU32 < 1 > ;
1132
+ #[ cfg( feature = "runtime-benchmarks" ) ]
1133
+ type BenchmarkHelper = BenchmarkHelper < SmartContract < AccountId > , AccountId > ;
1123
1134
}
1124
1135
1125
1136
impl pallet_membership:: Config < OracleMembershipInst > for Runtime {
You can’t perform that action at this time.
0 commit comments