You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending a call to a contract that would revert the relayer respond with a "Unknown error invoking RPC" instead of responding that the query result ended up in a revert with the revert reason. The json-relayer is actually aware that the error from the query is due to a contract call reverted it seem, in the log I see the following error
transaction [email protected] failed precheck with status CONTRACT_REVERT_EXECUTED status: 33
but this information is not returned.
{"code":3,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d53657420746f2072657665727400000000000000000000000000000000000000","message":"execution reverted: Set to revert"}}
0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d53657420746f2072657665727400000000000000000000000000000000000000
which indicate that the call was reverted and includes the revert reason
Steps to reproduce
Send a call on a contract that would revert to the json relayer
Additional context
No response
Hedera network
testnet
Version
testnet
Operating system
No response
The text was updated successfully, but these errors were encountered:
Notably, revert reasons can happen for different reasons and at different points in the flow.
In terms of the flow, the revert reason is not returned as part of the consensus node call.
So though you see the log in the relay, it's only telling you the type of error but not the revert reason.
For eth_call since it's a local node query the details actually don't make it off that node.
Could you provide more context including
which tool you're using and the call
sample contract for your case.
I'm also not sure where you got that response from (with code, data and message) either so that context would also be helpful.
Description
When sending a call to a contract that would revert the relayer respond with a
"Unknown error invoking RPC"
instead of responding that the query result ended up in a revert with the revert reason. The json-relayer is actually aware that the error from the query is due to a contract call reverted it seem, in the log I see the following errortransaction [email protected] failed precheck with status CONTRACT_REVERT_EXECUTED status: 33
but this information is not returned.
Example call
response:
0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d53657420746f2072657665727400000000000000000000000000000000000000
which indicate that the call was reverted and includes the revert reason
Steps to reproduce
Additional context
No response
Hedera network
testnet
Version
testnet
Operating system
No response
The text was updated successfully, but these errors were encountered: