Skip to content

Commit

Permalink
fix claims
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Jan 19, 2024
1 parent 7dd3f5a commit ba8bb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions claims/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ pub use pallet::*;
use parity_scale_codec::{Decode, Encode};
use scale_info::TypeInfo;
use sp_io::{crypto::secp256k1_ecdsa_recover, hashing::keccak_256};
#[cfg(feature = "std")]
use sp_runtime::traits::Zero;
use sp_runtime::{
traits::{CheckedSub, DispatchInfoOf, SignedExtension},
transaction_validity::{
Expand Down Expand Up @@ -150,9 +148,11 @@ pub mod pallet {
pub vesting: Vec<(EthereumAddress, (BalanceOf<T>, BalanceOf<T>, BlockNumberFor<T>))>,
}

#[cfg(feature = "std")]
#[pallet::genesis_build]
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
fn build(&self) {
use sp_runtime::traits::Zero;
// build `Claims`
self.claims.iter().map(|(a, b, _, _)| (a, b)).for_each(|(a, b)| {
Claims::<T>::insert(a, b);
Expand Down

0 comments on commit ba8bb6a

Please sign in to comment.