From 3ec93e70b0a381b1356ac53a152216682fb1fa3e Mon Sep 17 00:00:00 2001 From: toofooboo Date: Fri, 20 Dec 2024 14:37:44 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: toofooboo --- ton/proof.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ton/proof.go b/ton/proof.go index e9cd54c4..a9f5fa87 100644 --- a/ton/proof.go +++ b/ton/proof.go @@ -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 { @@ -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 } @@ -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 {