Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Data is missing from methods.myMethod #6355

@luu-alex

Description

@luu-alex

needs investigation, from discord user. Looks like the change from data/input has affected methods.mymethod:
Is there a way to force the format of the jsonRPC calls made by methods.myMethod to include the right fields?

Currently generates (4.1.0rc)

{"jsonrpc":"2.0","id":"b4c23746-97b2-4512-9dc2-2492d81151ce","method":"eth_call","params":[{"to":"0x5FbDB2315678afecb367f032d93F642f64180aa3","input":"0x70a082310000000000000000000000007a06dcfb82c84eb0e94bec11161012a3374ad98f"},"latest"]}

4.0.3

{"jsonrpc":"2.0","id":"b4c23746-97b2-4512-9dc2-2492d81151ce","method":"eth_call","params":[{"to":"0x5FbDB2315678afecb367f032d93F642f64180aa3","input":"0x70a082310000000000000000000000007a06dcfb82c84eb0e94bec11161012a3374ad98f","data":"0x70a082310000000000000000000000007a06dcfb82c84eb0e94bec11161012a3374ad98f"},"latest"]}

When it should be generating

{"jsonrpc":"2.0","id":"b4c23746-97b2-4512-9dc2-2492d81151ce","method":"eth_call","params":[{"to":"0x5FbDB2315678afecb367f032d93F642f64180aa3","data":"0x70a082310000000000000000000000007a06dcfb82c84eb0e94bec11161012a3374ad98f"},"latest"]}

Using either option currently gets met with:

{
    "jsonrpc": "2.0",
    "id": "b4c23746-97b2-4512-9dc2-2492d81151ce",
    "error": {
        "code": -32602,
        "message": "unknown field `input`, expected one of `from`, `to`, `gasPrice`, `maxFeePerGas`, `maxPriorityFeePerGas`, `gas`, `value`, `data`, `nonce`, `chainId`, `accessList`, `type`"
    }
}

Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. [First step]
  2. [Second step]
  3. [and so on...]

Logs

Environment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions