-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cast send returns server returned an error response: error code -32602: too many arguments, want at most 1
#8122
Comments
This seems to be related to Chiado testnet. On gnosis chain and arbitrum it works fine. Will test more networks |
could you share the logs too many arguments is weird, checking |
we're def sending a valid request:
so it looks like the eth_estimateGas endpoint doesn't fully support the spec? ![]() cast rpc web3_clientVersion --rpc-url "https://rpc.chiado.gnosis.gateway.fm/" |
Thanks for digging into it. I will get in touch with the Erigon team. Edit: I tried with Geth and Nethermind RPCs on Chiado and it always worked. Seems to be related to Erigon. |
Erigon v2.60.1 has a breaking change that removes the 2nd argument from |
The breaking change was reverted in Erigon v2.60.2. |
we also fixed this on the client side and exclude the argument if missing |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (6179312 2024-06-10T00:18:46.177980000Z)
What command(s) is the bug in?
cast send
Operating System
macOS (Apple Silicon)
Describe the bug
I'm trying to send a simple transfer with the following command
cast s --private-key <<PRIV_KEY>> --rpc-url https://rpc.chiado.gnosis.gateway.fm --value 0.1ether <<ADDRESS>> "0x"
I also tried
cast s --private-key <<PRIV_KEY>> --rpc-url https://rpc.chiado.gnosis.gateway.fm --value 0.1ether <<ADDRESS>>
The server returns
It most likely fails on
eth_estimateGas
, since when I specify--gas-limit
it works fine. I also tried connecting to a local RPC where I have access to the logs to and I saw thatestimateGas
is called multiple times.I downgraded
foundry
to find the first release where the error pops up. It's https://github.com/foundry-rs/foundry/releases/tag/nightly-cafc2606a2187a42b236df4aa65f4e8cdfcea970The text was updated successfully, but these errors were encountered: