mirror of https://github.com/hyperledger/besu
Trace APIs: add revert reason (#3539)
* added revertReason * added test file for trace_transaction with revertReason Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>pull/3544/head
parent
7e247f143d
commit
3160a4d0af
@ -0,0 +1,33 @@ |
||||
{ |
||||
"comment" : "Revert. Note revertReason has been manually added to the response because OpenEthereum does not include it.", |
||||
"request" : { |
||||
"jsonrpc" : "2.0", |
||||
"method" : "trace_transaction", |
||||
"params" : [ "0xc388baa0e55e6b73e850b22dc7e9853700f6b995fd55d95dd6ccd5a13d63c566" ], |
||||
"id" : 155 |
||||
}, |
||||
"response" : { |
||||
"jsonrpc" : "2.0", |
||||
"result" : [ { |
||||
"action" : { |
||||
"callType" : "call", |
||||
"from" : "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", |
||||
"gas" : "0xffadea", |
||||
"input" : "0x", |
||||
"to" : "0x0110000000000000000000000000000000000000", |
||||
"value" : "0x0" |
||||
}, |
||||
"blockHash" : "0x220bc13dc4f1ed38dcca927a5be15eca16497d279f4c40d7b8fe9704eadf1464", |
||||
"blockNumber" : 18, |
||||
"error" : "Reverted", |
||||
"revertReason" : "0x7d88c1856cc95352", |
||||
"subtraces" : 0, |
||||
"traceAddress" : [ ], |
||||
"transactionHash" : "0xc388baa0e55e6b73e850b22dc7e9853700f6b995fd55d95dd6ccd5a13d63c566", |
||||
"transactionPosition" : 1, |
||||
"type" : "call" |
||||
} ], |
||||
"id" : 155 |
||||
}, |
||||
"statusCode" : 200 |
||||
} |
Loading…
Reference in new issue