Skip to content

Commit

Permalink
remove GenesisConfig & GenesisBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaaa committed Apr 13, 2022
1 parent 13ae6db commit 5c5886d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pallets/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,6 @@ pub mod pallet {
pub type ClaimedRewards<T: Config> =
StorageDoubleMap<_, Twox64Concat, T::AccountId, Twox64Concat, TokenId, Balance, ValueQuery>;

#[pallet::genesis_config]
pub struct GenesisConfig {}

#[cfg(feature = "std")]
impl Default for GenesisConfig {
fn default() -> Self {
Self {}
}
}

#[pallet::genesis_build]
impl<T: Config> GenesisBuild<T> for GenesisConfig {
fn build(&self) {
Phase::<T>::put(BootstrapPhase::BeforeStart);
}
}

#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::weight(10_000)]
Expand Down

0 comments on commit 5c5886d

Please # to comment.