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
- [First step]
- [Second step]
- [and so on...]
Logs
Environment