Commit d118d119 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Merge pull request #8553 from Chomtana/typo-op-service

chore: fix op-service typo
parents 22f6efe1 b25a5138
......@@ -9,7 +9,7 @@ import (
// Artifact represents a foundry compilation artifact.
// The Abi is specifically left as a json.RawMessage because
// round trip marshaling/unmarshaling of the abi.ABI type
// round trip marshaling/unmarshalling of the abi.ABI type
// causes issues.
type Artifact struct {
Abi json.RawMessage `json:"abi"`
......
......@@ -108,7 +108,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error {
// eofAsUnexpectedMissing converts an io.EOF in the error chain of err into an
// io.ErrUnexpectedEOF. It should be used to convert intermediate io.EOF errors
// in unmarshaling code to achieve idiomatic error behavior.
// in unmarshalling code to achieve idiomatic error behavior.
// Other errors are passed through unchanged.
func eofAsUnexpectedMissing(err error) error {
if errors.Is(err, io.EOF) {
......
......@@ -129,7 +129,7 @@ func TestLifecycleCmd(t *testing.T) {
})
t.Run("failed init", func(t *testing.T) {
_, initCh, _, _, resultCh, _ := appSetup(t)
v := errors.New("TEST INIT ERRROR")
v := errors.New("TEST INIT ERROR")
initCh <- v
res := <-resultCh
require.ErrorIs(t, res, v)
......
......@@ -180,7 +180,7 @@ func (payload *ExecutionPayload) MarshalSSZ(w io.Writer) (n int, err error) {
// dynamic value 2: Transactions
marshalTransactions(buf[offset:offset+transactionSize], payload.Transactions)
offset += transactionSize
// dyanmic value 3: Withdrawals
// dynamic value 3: Withdrawals
if payload.Withdrawals != nil {
marshalWithdrawals(buf[offset:], *payload.Withdrawals)
}
......
......@@ -190,7 +190,7 @@ func FuzzOBP01(f *testing.F) {
})
}
// TestOPB01 verifies that the SSZ unmarshaling code
// TestOPB01 verifies that the SSZ unmarshalling code
// properly checks for the transactionOffset being larger
// than the extraDataOffset.
func TestOPB01(t *testing.T) {
......
......@@ -34,7 +34,7 @@ type RefMetrics struct {
var _ RefMetricer = (*RefMetrics)(nil)
// MakeRefMetrics returns a new RefMetrics, initializing its prometheus fields
// using factory. It is supposed to be used inside the construtors of metrics
// using factory. It is supposed to be used inside the constructors of metrics
// structs for any op service after the full namespace and factory have been
// setup.
//
......
......@@ -187,5 +187,5 @@ func TestSendStateTimeoutAbort(t *testing.T) {
func TestSendStateNoTimeoutAbortIfPublishedTx(t *testing.T) {
sendState := newSendStateWithTimeout(10*time.Millisecond, stepClock(20*time.Millisecond))
sendState.ProcessSendError(nil)
require.False(t, sendState.ShouldAbortImmediately(), "Should not abort if published transcation successfully")
require.False(t, sendState.ShouldAbortImmediately(), "Should not abort if published transaction successfully")
}
......@@ -239,7 +239,7 @@ func (*mockBackend) ChainID(ctx context.Context) (*big.Int, error) {
}
// TransactionReceipt queries the mockBackend for a mined txHash. If none is
// found, nil is returned for both return values. Otherwise, it retruns a
// found, nil is returned for both return values. Otherwise, it returns a
// receipt containing the txHash and the gasFeeCap used in the GasUsed to make
// the value accessible from our test framework.
func (b *mockBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
......
......@@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
res := new(RPCRes)
if err := json.Unmarshal(body, res); err != nil {
return nil, wrapErr(err, "error unmarshaling RPC response")
return nil, wrapErr(err, "error unmarshalling RPC response")
}
return res, nil
......
......@@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error {
var params []string
if err := json.Unmarshal(req.Params, &params); err != nil {
log.Debug("error unmarshaling raw transaction params", "err", err, "req_Id", GetReqID(ctx))
log.Debug("error unmarshalling raw transaction params", "err", err, "req_Id", GetReqID(ctx))
return ErrParseErr
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment