Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Feb 8, 2023
1 parent 142f9e6 commit 4af1c4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions runtime/crab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,13 +647,11 @@ cumulus_pallet_parachain_system::register_validate_block! {
#[cfg(test)]
mod tests {
// darwinia
use super::{Runtime, WeightPerGas};
// substrate
use frame_support::dispatch::DispatchClass;
use super::*;

#[test]
fn configured_base_extrinsic_weight_is_evm_compatible() {
let min_ethereum_transaction_weight = frame_support::weights::WeightPerGas::get() * 21_000;
let min_ethereum_transaction_weight = WeightPerGas::get() * 21_000;
let base_extrinsic = <Runtime as frame_system::Config>::BlockWeights::get()
.get(frame_support::dispatch::DispatchClass::Normal)
.base_extrinsic;
Expand Down
6 changes: 2 additions & 4 deletions runtime/darwinia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,11 @@ cumulus_pallet_parachain_system::register_validate_block! {
#[cfg(test)]
mod tests {
// darwinia
use super::{Runtime, WeightPerGas};
// substrate
use frame_support::dispatch::DispatchClass;
use super::*;

#[test]
fn configured_base_extrinsic_weight_is_evm_compatible() {
let min_ethereum_transaction_weight = frame_support::weights::WeightPerGas::get() * 21_000;
let min_ethereum_transaction_weight = WeightPerGas::get() * 21_000;
let base_extrinsic = <Runtime as frame_system::Config>::BlockWeights::get()
.get(frame_support::dispatch::DispatchClass::Normal)
.base_extrinsic;
Expand Down
6 changes: 2 additions & 4 deletions runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,11 @@ cumulus_pallet_parachain_system::register_validate_block! {
#[cfg(test)]
mod tests {
// darwinia
use super::{Runtime, WeightPerGas};
// substrate
use frame_support::dispatch::DispatchClass;
use super::*;

#[test]
fn configured_base_extrinsic_weight_is_evm_compatible() {
let min_ethereum_transaction_weight = frame_support::weights::WeightPerGas::get() * 21_000;
let min_ethereum_transaction_weight = WeightPerGas::get() * 21_000;
let base_extrinsic = <Runtime as frame_system::Config>::BlockWeights::get()
.get(frame_support::dispatch::DispatchClass::Normal)
.base_extrinsic;
Expand Down

0 comments on commit 4af1c4a

Please sign in to comment.