mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
fix: workflow failures - cargo fmt, taplo fmt, and StakingConfig
- Update taplo.toml exclude patterns to use glob patterns for zombienet files - Add StakingConfig to genesis_config_presets for proper era initialization - Fix cargo fmt issues in identity-kyc pallet and pezkuwichain runtime - Set num_cores to 2 for system teyrchains (Asset Hub + People Chain)
This commit is contained in:
1 parent
1d64a1317a
commit
172b04e4d4
7 files changed
+45
-24
No files matched your search
@@ -59,7 +59,7 @@ mod benchmarks {
|
||||
apply_for_citizenship(
|
||||
RawOrigin::Signed(applicant.clone()),
|
||||
identity_hash,
|
||||
referrer.clone(),
|
||||
Some(referrer.clone()),
|
||||
);
|
||||
|
||||
assert_eq!(KycStatuses::<T>::get(&applicant), KycLevel::PendingReferral);
|
||||
|
||||
@@ -317,7 +317,7 @@ pub mod pezpallet {
|
||||
let actual_referrer = referrer
|
||||
.filter(|r| *r != applicant) // Not self-referral
|
||||
.filter(|r| KycStatuses::<T>::get(r) == KycLevel::Approved) // Must be citizen
|
||||
.unwrap_or_else(|| T::DefaultReferrer::get());
|
||||
.unwrap_or_else(T::DefaultReferrer::get);
|
||||
|
||||
// Verify the actual referrer is valid (including DefaultReferrer)
|
||||
ensure!(
|
||||
@@ -333,13 +333,18 @@ pub mod pezpallet {
|
||||
T::Currency::reserve(&applicant, deposit)?;
|
||||
|
||||
// Store application (only hash, no personal data)
|
||||
let application = CitizenshipApplication { identity_hash, referrer: actual_referrer.clone() };
|
||||
let application =
|
||||
CitizenshipApplication { identity_hash, referrer: actual_referrer.clone() };
|
||||
Applications::<T>::insert(&applicant, application);
|
||||
|
||||
// Update status
|
||||
KycStatuses::<T>::insert(&applicant, KycLevel::PendingReferral);
|
||||
|
||||
Self::deposit_event(Event::CitizenshipApplied { applicant, referrer: actual_referrer, identity_hash });
|
||||
Self::deposit_event(Event::CitizenshipApplied {
|
||||
applicant,
|
||||
referrer: actual_referrer,
|
||||
identity_hash,
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user