mantlenetworkio / mantle

Mantle | Mass adoption of decentralized & token-governed technologies. With Mantle Network, Mantle Treasury, and token holder-governed products initiatives.
https://www.mantle.xyz
MIT License
226 stars 101 forks source link

[R4R]-[l2geth]feat: add data in eth_call's response when revert #1373

Closed Tri-stone closed 1 year ago

Tri-stone commented 1 year ago

Goals of PR

Core changes:

Result like blew:

{ "jsonrpc": "2.0", "id": 1, "error": { "code": 3, "message": "execution reverted: hello", "data": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000568656c6c6f000000000000000000000000000000000000000000000000000000" } }

Related Issues: