eth-json-rpc-middleware
eth-json-rpc-middleware copied to clipboard
Use input as data in eth_sendTransaction
The Ethereum execution API specs have eth_sendTransaction with a input field, however nodes such as geth have been using the data field instead, adding input support later.
To make eth_sendTransaction align better with execution api, this PR makes eth_sendTransaction accepts input OR data (if both are provided, they must be equal) and maps it to the data field in the object that the processTransaction callback expects
See: https://github.com/MetaMask/MetaMask-planning/issues/2214