Skip to content

Commit

Permalink
chore: typo fix (#13461)
Browse files Browse the repository at this point in the history
* messsage

* cancellation
  • Loading branch information
Gakunt authored Jan 20, 2024
1 parent 8de0e38 commit bdd7b2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/rpc/eth/validator/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := &ethpbalpha.SyncCommitteeMessage{
message := &ethpbalpha.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{
Expand Down
2 changes: 1 addition & 1 deletion consensus-types/blocks/roblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -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[:]
Expand Down
2 changes: 1 addition & 1 deletion testing/util/wait_timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bdd7b2c

Please sign in to comment.