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

Commit 719741b

Browse files
Fix test
1 parent e85c3cb commit 719741b

File tree

1 file changed

+5
-13
lines changed
  • frame/dvm-dynamic-fee/src

1 file changed

+5
-13
lines changed

frame/dvm-dynamic-fee/src/lib.rs

+5-13
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717

1818
#![cfg_attr(not(feature = "std"), no_std)]
1919

20-
// #[cfg(test)]
21-
// mod mock;
22-
// #[cfg(test)]
23-
// mod tests;
24-
2520
#[frame_support::pallet]
2621
pub mod pallet {
2722
// --- core ---
@@ -56,16 +51,12 @@ pub mod pallet {
5651
#[pallet::storage]
5752
pub type TargetMinGasPrice<T> = StorageValue<_, U256, OptionQuery>;
5853

59-
#[cfg_attr(feature = "std", derive(Default))]
6054
#[pallet::genesis_config]
61-
pub struct GenesisConfig {
62-
pub min_gas_price: U256,
63-
}
55+
#[derive(Default)]
56+
pub struct GenesisConfig;
6457
#[pallet::genesis_build]
6558
impl<T: Config> GenesisBuild<T> for GenesisConfig {
66-
fn build(&self) {
67-
<MinGasPrice<T>>::put(self.min_gas_price);
68-
}
59+
fn build(&self) {}
6960
}
7061

7162
#[pallet::pallet]
@@ -108,6 +99,8 @@ pub mod pallet {
10899
<MinGasPrice<T>>::get()
109100
}
110101
}
102+
103+
#[pallet::inherent]
111104
impl<T: Config> ProvideInherent for Pallet<T> {
112105
type Call = Call<T>;
113106
type Error = InherentError;
@@ -116,7 +109,6 @@ pub mod pallet {
116109

117110
fn create_inherent(data: &InherentData) -> Option<Self::Call> {
118111
let target = data.get_data::<InherentType>(&INHERENT_IDENTIFIER).ok()??;
119-
120112
Some(Call::note_min_gas_price_target(target))
121113
}
122114

0 commit comments

Comments
 (0)