Skip to content

Commit ab2c27f

Browse files
committed
fix check
1 parent d0ef043 commit ab2c27f

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

pallets/inflation/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ pub mod pallet {
457457
// or if the account has no provider references.
458458
// In both cases, the reward is lost but this can be ignored since it's extremely unlikely
459459
// to appear and doesn't bring any real harm.
460-
T::Currency::deposit_creating(account, reward);
460+
let _ = T::Currency::deposit_creating(account, reward);
461461
Ok(())
462462
}
463463
}

runtime/astar/src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
363363
.expect("Must succeed in test/benchmark environment.");
364364
}
365365
}
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+
}
366375

367376
pub struct AccountCheck;
368377
impl DappStakingAccountCheck<AccountId> for AccountCheck {
@@ -1119,6 +1128,8 @@ impl orml_oracle::Config for Runtime {
11191128
type MaxFeedValues = ConstU32<2>;
11201129
#[cfg(not(feature = "runtime-benchmarks"))]
11211130
type MaxFeedValues = ConstU32<1>;
1131+
#[cfg(feature = "runtime-benchmarks")]
1132+
type BenchmarkHelper = BenchmarkHelper<SmartContract<AccountId>, AccountId>;
11221133
}
11231134

11241135
impl pallet_membership::Config<OracleMembershipInst> for Runtime {

runtime/shibuya/src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
434434
.expect("Must succeed in test/benchmark environment.");
435435
}
436436
}
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+
}
437446

438447
pub struct AccountCheck;
439448
impl DappStakingAccountCheck<AccountId> for AccountCheck {
@@ -1217,6 +1226,8 @@ impl orml_oracle::Config for Runtime {
12171226
type MaxFeedValues = ConstU32<2>;
12181227
#[cfg(not(feature = "runtime-benchmarks"))]
12191228
type MaxFeedValues = ConstU32<1>;
1229+
#[cfg(feature = "runtime-benchmarks")]
1230+
type BenchmarkHelper = BenchmarkHelper<SmartContract<AccountId>, AccountId>;
12201231
}
12211232

12221233
impl pallet_membership::Config<OracleMembershipInst> for Runtime {

runtime/shiden/src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@ impl pallet_dapp_staking_v3::BenchmarkHelper<SmartContract<AccountId>, AccountId
388388
.expect("Must succeed in test/benchmark environment.");
389389
}
390390
}
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+
}
391400

392401
pub struct AccountCheck;
393402
impl DappStakingAccountCheck<AccountId> for AccountCheck {
@@ -1120,6 +1129,8 @@ impl orml_oracle::Config for Runtime {
11201129
type MaxFeedValues = ConstU32<2>;
11211130
#[cfg(not(feature = "runtime-benchmarks"))]
11221131
type MaxFeedValues = ConstU32<1>;
1132+
#[cfg(feature = "runtime-benchmarks")]
1133+
type BenchmarkHelper = BenchmarkHelper<SmartContract<AccountId>, AccountId>;
11231134
}
11241135

11251136
impl pallet_membership::Config<OracleMembershipInst> for Runtime {

0 commit comments

Comments
 (0)