From bdd7b2caa91c451bde4b82801f070ab615168650 Mon Sep 17 00:00:00 2001 From: Gaki <153402253+GakiBash@users.noreply.github.com> Date: Sat, 20 Jan 2024 02:07:17 +0100 Subject: [PATCH] chore: typo fix (#13461) * messsage * cancellation --- beacon-chain/rpc/eth/validator/handlers_test.go | 4 ++-- consensus-types/blocks/roblob.go | 2 +- testing/util/wait_timeout.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon-chain/rpc/eth/validator/handlers_test.go b/beacon-chain/rpc/eth/validator/handlers_test.go index 1cfeb2350cda..f7c885b9e60f 100644 --- a/beacon-chain/rpc/eth/validator/handlers_test.go +++ b/beacon-chain/rpc/eth/validator/handlers_test.go @@ -1198,14 +1198,14 @@ func TestGetAttestationData(t *testing.T) { func TestProduceSyncCommitteeContribution(t *testing.T) { root := bytesutil.PadTo([]byte("0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"), 32) sig := bls.NewAggregateSignature().Marshal() - messsage := ðpbalpha.SyncCommitteeMessage{ + message := ðpbalpha.SyncCommitteeMessage{ Slot: 1, BlockRoot: root, ValidatorIndex: 0, Signature: sig, } syncCommitteePool := synccommittee.NewStore() - require.NoError(t, syncCommitteePool.SaveSyncCommitteeMessage(messsage)) + require.NoError(t, syncCommitteePool.SaveSyncCommitteeMessage(message)) server := Server{ CoreService: &core.Service{ HeadFetcher: &mockChain.ChainService{ diff --git a/consensus-types/blocks/roblob.go b/consensus-types/blocks/roblob.go index e087f4c4e1e2..bdbdde9cc257 100644 --- a/consensus-types/blocks/roblob.go +++ b/consensus-types/blocks/roblob.go @@ -68,7 +68,7 @@ func (b *ROBlob) ProposerIndex() primitives.ValidatorIndex { return b.SignedBlockHeader.Header.ProposerIndex } -// BlockRootSlice returns the block root as a byte slice. This is often more conveninent/concise +// BlockRootSlice returns the block root as a byte slice. This is often more convenient/concise // than setting a tmp var to BlockRoot(), just so that it can be sliced. func (b *ROBlob) BlockRootSlice() []byte { return b.root[:] diff --git a/testing/util/wait_timeout.go b/testing/util/wait_timeout.go index 0482e4f22938..bdc9a0547b60 100644 --- a/testing/util/wait_timeout.go +++ b/testing/util/wait_timeout.go @@ -36,7 +36,7 @@ func NewWaiter() *Waiter { } // Done is used with RequireDoneAfter and RequireDoneBefore to make assertions -// that certain test code is reached before a timeout or context cancelation. +// that certain test code is reached before a timeout or context cancellation. func (w *Waiter) Done() { close(w.c) }