Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify EIP 1193 error codes #2240

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Conversation

rekmarks
Copy link
Contributor

I suggested the errors defined in the EIP be changed to:

Status code Name Description
4001 User Rejected Request The user rejected the request.
4100 Unauthorized The requested method and/or account has not been authorized by the user.
4200 Unsupported Method The requested method is not supported by the given Ethereum Provider.

In summary, these changes:

  • Generalize the meaning of the 4001 error code to User Rejected Request
    • A single "user rejection" error should suffice for all RPC methods
  • Remove the 4010 error code
    • With the redefinition of 4001, this error code is no longer needed
  • Generalize the meaning of the "Unauthorized" error such that it can apply to other restrictions applied by the user/wallet
    The 4200 error is unchanged.

The redefined errors are still effective for EIP 1193, but also flexible enough to be useful for RPC methods and patterns yet unimagined.

@eip-automerger
Copy link

Hi! I'm a bot, and I wanted to automerge your PR, but couldn't because of the following issue(s):

@eip-automerger eip-automerger merged commit 512b4a4 into ethereum:master Aug 16, 2019
ilanolkies pushed a commit to ilanolkies/EIPs that referenced this pull request Nov 12, 2019
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
MadeofTin pushed a commit to MadeofTin/EIPs that referenced this pull request Nov 13, 2019
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
BelfordZ pushed a commit to BelfordZ/EIPs that referenced this pull request Dec 13, 2019
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
tkstanczak pushed a commit to tkstanczak/EIPs that referenced this pull request Nov 7, 2020
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
@rekmarks rekmarks deleted the 1193-errors branch February 22, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants