This repository was archived by the owner on Mar 24, 2023. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
adds a custom-defined field
datato the error responsedata. Here is an example:{ "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_reasonanderror.data.messageis 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.
All reactions