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 ( ...@@ -9,7 +9,7 @@ import (
// Artifact represents a foundry compilation artifact. // Artifact represents a foundry compilation artifact.
// The Abi is specifically left as a json.RawMessage because // 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. // causes issues.
type Artifact struct { type Artifact struct {
Abi json.RawMessage `json:"abi"` Abi json.RawMessage `json:"abi"`
......
...@@ -108,7 +108,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error { ...@@ -108,7 +108,7 @@ func (f *Frame) UnmarshalBinary(r ByteReader) error {
// eofAsUnexpectedMissing converts an io.EOF in the error chain of err into an // 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 // 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. // Other errors are passed through unchanged.
func eofAsUnexpectedMissing(err error) error { func eofAsUnexpectedMissing(err error) error {
if errors.Is(err, io.EOF) { if errors.Is(err, io.EOF) {
......
...@@ -129,7 +129,7 @@ func TestLifecycleCmd(t *testing.T) { ...@@ -129,7 +129,7 @@ func TestLifecycleCmd(t *testing.T) {
}) })
t.Run("failed init", func(t *testing.T) { t.Run("failed init", func(t *testing.T) {
_, initCh, _, _, resultCh, _ := appSetup(t) _, initCh, _, _, resultCh, _ := appSetup(t)
v := errors.New("TEST INIT ERRROR") v := errors.New("TEST INIT ERROR")
initCh <- v initCh <- v
res := <-resultCh res := <-resultCh
require.ErrorIs(t, res, v) require.ErrorIs(t, res, v)
......
...@@ -180,7 +180,7 @@ func (payload *ExecutionPayload) MarshalSSZ(w io.Writer) (n int, err error) { ...@@ -180,7 +180,7 @@ func (payload *ExecutionPayload) MarshalSSZ(w io.Writer) (n int, err error) {
// dynamic value 2: Transactions // dynamic value 2: Transactions
marshalTransactions(buf[offset:offset+transactionSize], payload.Transactions) marshalTransactions(buf[offset:offset+transactionSize], payload.Transactions)
offset += transactionSize offset += transactionSize
// dyanmic value 3: Withdrawals // dynamic value 3: Withdrawals
if payload.Withdrawals != nil { if payload.Withdrawals != nil {
marshalWithdrawals(buf[offset:], *payload.Withdrawals) marshalWithdrawals(buf[offset:], *payload.Withdrawals)
} }
......
...@@ -190,7 +190,7 @@ func FuzzOBP01(f *testing.F) { ...@@ -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 // properly checks for the transactionOffset being larger
// than the extraDataOffset. // than the extraDataOffset.
func TestOPB01(t *testing.T) { func TestOPB01(t *testing.T) {
......
...@@ -34,7 +34,7 @@ type RefMetrics struct { ...@@ -34,7 +34,7 @@ type RefMetrics struct {
var _ RefMetricer = (*RefMetrics)(nil) var _ RefMetricer = (*RefMetrics)(nil)
// MakeRefMetrics returns a new RefMetrics, initializing its prometheus fields // 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 // structs for any op service after the full namespace and factory have been
// setup. // setup.
// //
......
...@@ -187,5 +187,5 @@ func TestSendStateTimeoutAbort(t *testing.T) { ...@@ -187,5 +187,5 @@ func TestSendStateTimeoutAbort(t *testing.T) {
func TestSendStateNoTimeoutAbortIfPublishedTx(t *testing.T) { func TestSendStateNoTimeoutAbortIfPublishedTx(t *testing.T) {
sendState := newSendStateWithTimeout(10*time.Millisecond, stepClock(20*time.Millisecond)) sendState := newSendStateWithTimeout(10*time.Millisecond, stepClock(20*time.Millisecond))
sendState.ProcessSendError(nil) 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) { ...@@ -239,7 +239,7 @@ func (*mockBackend) ChainID(ctx context.Context) (*big.Int, error) {
} }
// TransactionReceipt queries the mockBackend for a mined txHash. If none is // 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 // receipt containing the txHash and the gasFeeCap used in the GasUsed to make
// the value accessible from our test framework. // the value accessible from our test framework.
func (b *mockBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) { func (b *mockBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
......
...@@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) { ...@@ -110,7 +110,7 @@ func ParseRPCRes(r io.Reader) (*RPCRes, error) {
res := new(RPCRes) res := new(RPCRes)
if err := json.Unmarshal(body, res); err != nil { 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 return res, nil
......
...@@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool { ...@@ -677,7 +677,7 @@ func (s *Server) isGlobalLimit(method string) bool {
func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error { func (s *Server) rateLimitSender(ctx context.Context, req *RPCReq) error {
var params []string var params []string
if err := json.Unmarshal(req.Params, &params); err != nil { 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 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