Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typo #1279

Open
wants to merge 1 commit into
base: manta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pallets/name-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub mod pallet {
Self::do_register(&username, registrant)
}

/// After Pending Register has passed its block wait time, finish regiser
/// After Pending Register has passed its block wait time, finish register
#[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::accept_register())]
#[transactional]
Expand Down Expand Up @@ -246,7 +246,7 @@ impl<T: Config> Pallet<T> {
T::PalletId::get().into_account_truncating()
}

/// Queue username for regiser
/// Queue username for register
fn do_register(username: &UserName, registrant: ZkAddressType) -> DispatchResult {
// Username checks
username_validation(username).ok_or(Error::<T>::InvalidUsernameFormat)?;
Expand Down
4 changes: 2 additions & 2 deletions pallets/pallet-lottery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub mod pallet {
type DrawingInterval: Get<Self::BlockNumber>;
/// Time in blocks *before* a drawing in
/// Depending on the randomness source, the winner might be established before the drawing, this prevents modification of the eligible winning set after the winner
/// has been established but before it is selected by [`Call::draw_lottery`] which modifications of the win-eligble pool are prevented
/// has been established but before it is selected by [`Call::draw_lottery`] which modifications of the win-eligible pool are prevented
#[pallet::constant]
type DrawingFreezeout: Get<Self::BlockNumber>;
/// Time in blocks until a collator is done unstaking
Expand Down Expand Up @@ -1116,7 +1116,7 @@ pub mod pallet {
return true;
}
};
// Ensure the pallet has enough gas to pay for this. Should never run out as long as its's called from `draw_lottery`
// Ensure the pallet has enough gas to pay for this. Should never run out as long as it's called from `draw_lottery`
let fee_estimate : BalanceOf<T> = T::EstimateCallFee::estimate_call_fee(&pallet_parachain_staking::Call::execute_delegation_request { delegator: Self::account_id() , candidate: collator.account.clone() }, None.into());
if Self::surplus_funds() <= fee_estimate{
log::warn!("could not finish unstaking delegation because the pallet is out of funds to pay TX fees. Skipping");
Expand Down
2 changes: 1 addition & 1 deletion runtime/manta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ parameter_types! {
pub const LotteryPotId: PalletId = LOTTERY_PALLET_ID;
/// Time in blocks between lottery drawings
pub DrawingInterval: BlockNumber = prod_or_fast!(7 * DAYS, 3 * MINUTES);
/// Time in blocks *before* a drawing in which modifications of the win-eligble pool are prevented
/// Time in blocks *before* a drawing in which modifications of the win-eligible pool are prevented
pub DrawingFreezeout: BlockNumber = prod_or_fast!(1 * DAYS, 1 * MINUTES);
/// Time in blocks until a collator is done unstaking
pub UnstakeLockTime: BlockNumber = LeaveDelayRounds::get() * DefaultBlocksPerRound::get();
Expand Down
Loading