Skip to content

Commit

Permalink
fix invalid merge resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 committed Dec 23, 2024
1 parent 520e618 commit 360996f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions generic-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,29 +165,5 @@ mod test {
}
}

#[cfg(test)]
mod test {
use frame_support::weights::WeightToFeePolynomial;

use crate::{
constants::{POLY_DEGREE, VERSION},
native_version, WeightToFee,
};

#[test]
fn test_native_version() {
let version = native_version();
assert_eq!(version.runtime_version, VERSION);
}

#[test]
fn test_weight_to_fee() {
let mut fee = WeightToFee::polynomial();
let coef = fee.pop().expect("no coef");
assert!(!coef.negative);
assert_eq!(coef.degree, POLY_DEGREE);
}
}

#[cfg(feature = "runtime-benchmarks")]
mod benchmark;

0 comments on commit 360996f

Please sign in to comment.