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
The Ethereum execution API specs have
eth_sendTransaction
with ainput
field, however nodes such as geth have been using thedata
field instead, addinginput
support later.To make
eth_sendTransaction
align better with execution api, this PR makeseth_sendTransaction
acceptsinput
ORdata
(if both are provided, they must be equal) and maps it to thedata
field in the object that theprocessTransaction
callback expectsSee: https://github.com/MetaMask/MetaMask-planning/issues/2214