Commit b25a5138 authored by Chomtana's avatar Chomtana

fix: unmarshaling -> unmarshalling on other files

parent 34ac45b7
...@@ -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) {
......
...@@ -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