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
{{ message }}
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32099,
"message": "revert: Error: VM Exception while processing transaction: reverted with reason string '12341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341'",
"data": {
"failed_reason": {
"status_code": "0x2",
"status_type": "REVERT",
"message": "Error: VM Exception while processing transaction: reverted with reason string '12341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341'"
},
"message": "revert: Error: VM Exception while processing transaction: reverted with reason string '12341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341123411234112341'",
"data": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000aa313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343131323334313132333431313233343100000000000000000000000000000000000000000000"
}
}
}
The purpose of error.data.failed_reason and error.data.message is to provide developers with low-level details about the error.
It is too low-level and meaningless for developers, in my opinion.
To simplify the error response, I propose removing these two fields.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
adds a custom-defined field
data
to the error responsedata
. Here is an example:The purpose of
error.data.failed_reason
anderror.data.message
is to provide developers with low-level details about the error.It is too low-level and meaningless for developers, in my opinion.
To simplify the error response, I propose removing these two fields.
Beta Was this translation helpful? Give feedback.
All reactions