Skip to content

Commit

Permalink
fix "Code: -32600, Message: Invalid request" when using with hardhat …
Browse files Browse the repository at this point in the history
…node (#268)
  • Loading branch information
rpuntaie authored Nov 1, 2024
1 parent 77841e1 commit 92266b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsonrpc/transport/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func (h *HTTP) Call(method string, out interface{}, params ...interface{}) error
return err
}
request.Params = data
} else {
request.Params = []byte{'[', ']'}
}
raw, err := json.Marshal(request)
if err != nil {
Expand Down

0 comments on commit 92266b0

Please sign in to comment.