Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Dec 11, 2024
1 parent e35cd7b commit 3b039e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/pallet-domains/src/block_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ pub(crate) fn prune_receipt<T: Config>(
// If the pruned ER is the operator's `latest_submitted_er` for this domain, it means either:
//
// - All the ER the operator submitted for this domain are confirmed and pruned, so the operator
// can't be targetted by fraud proof later unless it submit other new ERs.
// can't be targeted by fraud proof later unless it submit other new ERs.
//
// - All the bad ER the operator submitted for this domain are pruned and the operator is already
// slashed, so wwe don't need `LatestSubmittedER` to determine if the operator is pending slash.
Expand Down
2 changes: 1 addition & 1 deletion crates/pallet-domains/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ fn test_basic_fraud_proof_processing() {

for block_number in bad_receipt_at..=head_domain_number {
if block_number == bad_receipt_at {
// The targetted ER should be removed from the block tree
// The targeted ER should be removed from the block tree
assert!(BlockTree::<Test>::get(domain_id, block_number).is_none());
} else {
// All the bad ER's descendants should be marked as pending to prune and the submitter
Expand Down
8 changes: 4 additions & 4 deletions crates/sp-domains-fraud-proof/src/fraud_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ pub struct FraudProof<Number, Hash, DomainHeader: HeaderT, MmrHash> {
pub domain_id: DomainId,
/// Hash of the bad receipt this fraud proof targeted
pub bad_receipt_hash: HeaderHashFor<DomainHeader>,
/// The MMR proof for the consensus state root that used to verify the storage proof
/// The MMR proof for the consensus state root that is used to verify the storage proof
///
/// It is set `None` if the specific fraud proof variant doesn't contains storage proof
/// It is set `None` if the specific fraud proof variant doesn't contain a storage proof
pub maybe_mmr_proof: Option<ConsensusChainMmrLeafProof<Number, Hash, MmrHash>>,
/// The domain runtime code storage proof
///
/// It is set `None` if the specific fraud proof variant doesn't required domain runtime code
/// It is set `None` if the specific fraud proof variant doesn't require domain runtime code
/// or the required domain runtime code is available from the current runtime state.
pub maybe_domain_runtime_code_proof: Option<DomainRuntimeCodeAt<Number, Hash, MmrHash>>,
/// The specific fraud proof variant
Expand Down Expand Up @@ -485,7 +485,7 @@ pub struct InvalidStateTransitionProof {
/// Fraud proof for the valid bundles in `ExecutionReceipt::inboxed_bundles`
#[derive(Clone, Debug, Decode, Encode, Eq, PartialEq, TypeInfo)]
pub struct ValidBundleProof<Number, Hash, DomainHeader: HeaderT> {
/// The targetted bundle with proof
/// The targeted bundle with proof
pub bundle_with_proof: OpaqueBundleWithProof<Number, Hash, DomainHeader, Balance>,
}

Expand Down

0 comments on commit 3b039e9

Please sign in to comment.