From 29bd4d47a23b2a98bc8e836c0d37d1508cefff4f Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Sun, 10 Dec 2023 00:37:51 +0000 Subject: [PATCH 1/2] variable typo fix --- pkg/wrapper/nmt_wrapper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/wrapper/nmt_wrapper_test.go b/pkg/wrapper/nmt_wrapper_test.go index 3ff73e796b..04a3a4488b 100644 --- a/pkg/wrapper/nmt_wrapper_test.go +++ b/pkg/wrapper/nmt_wrapper_test.go @@ -173,8 +173,8 @@ func TestErasuredNamespacedMerkleTree_ProveRange(t *testing.T) { } else { namespaceID = appns.ParitySharesNamespace.Bytes() } - verfied := proof.VerifyInclusion(appconsts.NewBaseHashFunc(), namespaceID, [][]byte{data[i]}, root) - assert.True(t, verfied) + verified := proof.VerifyInclusion(appconsts.NewBaseHashFunc(), namespaceID, [][]byte{data[i]}, root) + assert.True(t, verified) } } } From 75d8f29d69ebe3d9809bffa6def9bb28c919da2f Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Sun, 10 Dec 2023 00:38:17 +0000 Subject: [PATCH 2/2] comment typo fix --- pkg/appconsts/global_consts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/appconsts/global_consts.go b/pkg/appconsts/global_consts.go index 19c83eb2cf..7ca564a0fe 100644 --- a/pkg/appconsts/global_consts.go +++ b/pkg/appconsts/global_consts.go @@ -29,7 +29,7 @@ const ( ShareSize = 512 // ShareInfoBytes is the number of bytes reserved for information. The info - // byte contains the share version and a sequence start idicator. + // byte contains the share version and a sequence start indicator. ShareInfoBytes = 1 // SequenceLenBytes is the number of bytes reserved for the sequence length @@ -78,7 +78,7 @@ const ( ) var ( - // DataCommitmentBlocksLimit is the maximnum number of blocks that a data commitment can span + // DataCommitmentBlocksLimit is the maximum number of blocks that a data commitment can span DataCommitmentBlocksLimit = consts.DataCommitmentBlocksLimit // NewBaseHashFunc is the base hash function used by NMT. Change accordingly