Skip to content
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

"too many arguments, want at most 2" on custom network #7954

Closed
2 tasks done
Thegaram opened this issue May 20, 2024 · 1 comment
Closed
2 tasks done

"too many arguments, want at most 2" on custom network #7954

Thegaram opened this issue May 20, 2024 · 1 comment
Labels
T-bug Type: bug

Comments

@Thegaram
Copy link

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (54d8510 2024-05-20T00:20:07.498643000Z)

What command(s) is the bug in?

cast call

Operating System

macOS (Apple Silicon)

Describe the bug

On a custom network (chain id 222222), this works:

> curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_call", "params": [{"to": "0xE8995e9B4d2E6653653900f501F31aE9c217937a", "data":"0x797594b0"}, "latest"] ,"id":67}' -s http://${IP}:8545        
{"jsonrpc":"2.0","id":67,"result":"0x000000000000000000000000c6e1a05cbaee32de3ce790fb7484bd331ade8997"}

But this doesn't:

> cast call --rpc-url http://${IP}:8545 0xE8995e9B4d2E6653653900f501F31aE9c217937a "counterpart()(address)"
Error: 
server returned an error response: error code -32602: too many arguments, want at most 2
@DaniPopes
Copy link
Member

DaniPopes commented May 24, 2024

Fixed in the next nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

No branches or pull requests

2 participants