umbracle / ethgo

Ethereum Golang API
https://www.ethgoproject.io
Mozilla Public License 2.0
484 stars 134 forks source link

fix "Code: -32600, Message: Invalid request" when using with hardhat #268

Closed rpuntaie closed 3 weeks ago

rpuntaie commented 3 weeks ago

params is wrong:

{"jsonrpc":"2.0","id":0,"method":"eth_gasPrice","params":null}

With [] instead of null it does not happen.

It happened with

npx hardhat node

It didn't happen when using

docker run --name geth-test -d -p 8545:8545 -p 8546:8546 ethereum/client-go:v1.10.15 --dev --datadir /eth1data --ipcpath /eth1data/geth.ipc --http --http.addr 0.0.0.0 --http.api eth,net,web3,debug --ws --ws.addr 0.0.0.0 --verbosity 4
vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ethgo ❌ Failed (Inspect) Oct 30, 2024 5:01pm