Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Feb 20, 2024
1 parent e609bf5 commit a4abca1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
10 changes: 5 additions & 5 deletions runtimes/eden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ std = [
"sp-version/std",
"sp-npos-elections/std",
"pallet-xcm-benchmarks/std",
"pallet-message-queue/std",
"parachains-common/std"
"pallet-message-queue/std",
"parachains-common/std"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Expand Down Expand Up @@ -112,9 +112,9 @@ runtime-benchmarks = [
"sp-runtime/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
"cumulus-pallet-dmp-queue/runtime-benchmarks",
"cumulus-primitives-core/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"parachains-common/runtime-benchmarks"
"cumulus-primitives-core/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"parachains-common/runtime-benchmarks"
]
try-runtime = [
"frame-executive/try-runtime",
Expand Down
2 changes: 1 addition & 1 deletion runtimes/eden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ sp_api::impl_runtime_apis! {
input_data: Vec<u8>,
) -> pallet_contracts::ContractExecResult<Balance,EventRecord> {

Check warning on line 344 in runtimes/eden/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

runtimes/eden/src/lib.rs#L344

Added line #L344 was not covered by tests
let gas_limit = gas_limit.unwrap_or(RuntimeBlockWeights::get().max_block);
Contracts::bare_call(
Contracts::bare_call(
origin,
dest,
value,
Expand Down
1 change: 0 additions & 1 deletion runtimes/eden/src/pallets_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ parameter_types! {
pub const DefaultDepositLimit: Balance = constants::deposit(1024, 1024 * 1024);
pub MySchedule: Schedule<Runtime> = Default::default();
pub CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(30);
// pub RuntimeHoldReason = ();
}

impl pallet_contracts::Config for Runtime {
Expand Down
5 changes: 0 additions & 5 deletions runtimes/eden/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ use codec::{Decode, Encode};
use cumulus_primitives_core::ParaId;
#[cfg(feature = "runtime-benchmarks")]
use frame_benchmarking::BenchmarkError;

// #[cfg(feature="runtime-benchmarks")]
// impl pallet_xcm::benchmarking::Config for Runtime {

// }
use frame_support::{
match_types, parameter_types,
traits::{ConstU32, Everything, Nothing, PalletInfoAccess},
Expand Down

0 comments on commit a4abca1

Please sign in to comment.