Skip to content

Commit

Permalink
Automatically merged updates to draft EIP(s) 1193 (ethereum#2634)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rekmarks authored and Arachnid committed Mar 6, 2021
1 parent 6bc66a8 commit 76dfdc6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions EIPS/eip-1193.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ Provider implementers are encouraged to work with each other and with dapp devel

### Connectivity

The Provider is said to be "connected" when it can service RPC requests to any chain.
The Provider is said to be "connected" when it can service RPC requests to at least one chain.

The Provider is said to "disconnected" when it cannot service RPC requests to any chain.
The Provider is said to be "disconnected" when it cannot service RPC requests to any chain at all.

> To service an RPC request, the Provider must successfully submit the request to the remote location, and receive a response.
> In other words, if the Provider is unable to communicate with its Client, for example due to network issues, the Provider is disconnected.
Expand Down Expand Up @@ -353,7 +353,7 @@ The returned Promise **SHOULD** reject if any of the following conditions are me

- The Provider is disconnected.
- If rejecting for this reason, the Promise rejection error `code` **MUST** be `4900`.
- The RPC request is directed at a specific chain, and the Provider is not connected to that chain.
- The RPC request is directed at a specific chain, and the Provider is not connected to that chain, but is connected to at least one other chain.
- If rejecting for this reason, the Promise rejection error `code` **MUST** be `4901`.

See the section [Connectivity](#connectivity) for the definitions of "connected" and "disconnected".
Expand Down Expand Up @@ -406,8 +406,11 @@ interface ProviderRpcError extends Error {
| 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 Provider does not support the requested method. |
| 4900 | Not Connected | The Provider is not connected to any chains. |
| 4901 | Chain Not Connected | The Provider is not connected to the requested chain. |
| 4900 | Disconnected | The Provider is disconnected from all chains. |
| 4901 | Chain Disconnected | The Provider is not connected to the requested chain. |

> `4900` is intended to indicate that the Provider is disconnected from all chains, while `4901` is intended to indicate that the Provider is disconnected from a specific chain only.
> In other words, `4901` implies that the Provider is connected to other chains, just not the requested one.
### Events

Expand Down

0 comments on commit 76dfdc6

Please sign in to comment.