Skip to content

Commit

Permalink
Merge pull request #2669 from xiaoxianBoy/fix-typos
Browse files Browse the repository at this point in the history
chore: fix typos
  • Loading branch information
nazar-pc authored Apr 8, 2024
2 parents c6f829d + 0ee2b0e commit 417c996
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/pallet-domains/src/block_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub(crate) enum RejectedReceiptType {
Stale,
// Receipt that tries to create a new branch of the block tree
//
// The honests operatpr must submit fraud proof to prune the bad receipt at the
// The honests operator must submit fraud proof to prune the bad receipt at the
// same height before submitting the valid receipt.
NewBranch,
}
Expand Down Expand Up @@ -1040,7 +1040,7 @@ mod tests {
Error::InvalidTraceRoot
);

// Receipt with addtional trace
// Receipt with additional trace
let mut invalid_receipt = next_receipt.clone();
invalid_receipt.execution_trace.push(H256::random());
assert_err!(
Expand Down
2 changes: 1 addition & 1 deletion crates/pallet-domains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ impl<T: Config> Pallet<T> {
_ => return Err(FraudProofError::UnexpectedFraudProof),
}

// Bundle equivacotion fraud proof doesn't target bad ER thus we give it the lowest priority
// Bundle equivocation fraud proof doesn't target bad ER thus we give it the lowest priority
// compared to other fraud proofs
let priority = TransactionPriority::MAX
- T::BlockTreePruningDepth::get().saturated_into::<u64>()
Expand Down
2 changes: 1 addition & 1 deletion crates/pallet-domains/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub struct Operator<Balance, Share, DomainBlockNumber> {
/// Total shares of all the nominators under this operator.
pub current_total_shares: Share,
/// The status of the operator, it may be stale due to the `OperatorStatus::PendingSlash` is
/// not assigned to this field directlt, thus MUST use the `status()` method to query the status
/// not assigned to this field directly, thus MUST use the `status()` method to query the status
/// instead.
/// TODO: update the filed to `_status` to avoid accidental access in next network reset
status: OperatorStatus<DomainBlockNumber>,
Expand Down

0 comments on commit 417c996

Please sign in to comment.