eth-json-rpc-middleware icon indicating copy to clipboard operation
eth-json-rpc-middleware copied to clipboard

Use input as data in eth_sendTransaction

Open jiexi opened this issue 1 year ago • 0 comments

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

jiexi avatar Apr 10 '24 23:04 jiexi