This repository was archived by the owner on Mar 13, 2023. It is now read-only.
Commit 719741b 1 parent e85c3cb commit 719741b Copy full SHA for 719741b
File tree 1 file changed +5
-13
lines changed
frame/dvm-dynamic-fee/src
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#![ cfg_attr( not( feature = "std" ) , no_std) ]
19
19
20
- // #[cfg(test)]
21
- // mod mock;
22
- // #[cfg(test)]
23
- // mod tests;
24
-
25
20
#[ frame_support:: pallet]
26
21
pub mod pallet {
27
22
// --- core ---
@@ -56,16 +51,12 @@ pub mod pallet {
56
51
#[ pallet:: storage]
57
52
pub type TargetMinGasPrice < T > = StorageValue < _ , U256 , OptionQuery > ;
58
53
59
- #[ cfg_attr( feature = "std" , derive( Default ) ) ]
60
54
#[ pallet:: genesis_config]
61
- pub struct GenesisConfig {
62
- pub min_gas_price : U256 ,
63
- }
55
+ #[ derive( Default ) ]
56
+ pub struct GenesisConfig ;
64
57
#[ pallet:: genesis_build]
65
58
impl < T : Config > GenesisBuild < T > for GenesisConfig {
66
- fn build ( & self ) {
67
- <MinGasPrice < T > >:: put ( self . min_gas_price ) ;
68
- }
59
+ fn build ( & self ) { }
69
60
}
70
61
71
62
#[ pallet:: pallet]
@@ -108,6 +99,8 @@ pub mod pallet {
108
99
<MinGasPrice < T > >:: get ( )
109
100
}
110
101
}
102
+
103
+ #[ pallet:: inherent]
111
104
impl < T : Config > ProvideInherent for Pallet < T > {
112
105
type Call = Call < T > ;
113
106
type Error = InherentError ;
@@ -116,7 +109,6 @@ pub mod pallet {
116
109
117
110
fn create_inherent ( data : & InherentData ) -> Option < Self :: Call > {
118
111
let target = data. get_data :: < InherentType > ( & INHERENT_IDENTIFIER ) . ok ( ) ??;
119
-
120
112
Some ( Call :: note_min_gas_price_target ( target) )
121
113
}
122
114
You can’t perform that action at this time.
0 commit comments