Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: toofooboo <[email protected]>
  • Loading branch information
toofooboo committed Dec 20, 2024
1 parent b50926d commit 3ec93e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ton/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func CheckBackwardBlockProof(from, to *BlockIDExt, toKey bool, stateProof, destP

toBlock, err := CheckBlockProof(destProof, to.RootHash)
if err != nil {
return fmt.Errorf("failed to check traget block proof: %w", err)
return fmt.Errorf("failed to check target block proof: %w", err)
}

if toBlock.BlockInfo.KeyBlock != toKey {
Expand Down Expand Up @@ -258,7 +258,7 @@ func CheckBackwardBlockProof(from, to *BlockIDExt, toKey bool, stateProof, destP
}

if !bytes.Equal(blk.BlkRef.RootHash, to.RootHash) {
return fmt.Errorf("incorret target block hash in proof")
return fmt.Errorf("incorrect target block hash in proof")
}
return nil
}
Expand All @@ -274,7 +274,7 @@ func CheckForwardBlockProof(from, to *BlockIDExt, toKey bool, configProof, destP

toBlock, err := CheckBlockProof(destProof, to.RootHash)
if err != nil {
return fmt.Errorf("failed to check traget block proof: %w", err)
return fmt.Errorf("failed to check target block proof: %w", err)
}

if toBlock.BlockInfo.KeyBlock != toKey {
Expand Down

0 comments on commit 3ec93e7

Please sign in to comment.