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 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) } } }