Skip to content

Commit

Permalink
Automatically merged updates to draft EIP(s) 1102 (ethereum#2497)
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
MicahZoltu authored and pizzarob committed Jun 12, 2020
1 parent 9c00cc8 commit 6392ed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EIPS/eip-1102.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "S

Providers exposed by Ethereum-enabled DOM environments define a new RPC method: `eth_requestAccounts`. Calling this method may trigger a user interface that allows the user to approve or reject account access for a given dapp. This method returns a `Promise` that is resolved with an `Array` of accounts or is rejected with an `Error` if accounts are not available.

```js
ethereum.send('eth_requestAccounts'): Promise<string>
```typescript
ethereum.send('eth_requestAccounts'): Promise<Array<string>>
```

#### Provider#enable (DEPRECATED)
Expand All @@ -42,7 +42,7 @@ ethereum.send('eth_requestAccounts'): Promise<string>

Providers exposed by Ethereum-enabled DOM environments define a new RPC method: `ethereum.enable()`. Calling this method triggers a user interface that allows the user to approve or reject account access for a given dapp. This method returns a `Promise` that is resolved with an `Array` of accounts if the user approves access or rejected with an `Error` if the user rejects access.

```js
```typescript
ethereum.enable(): Promise<any>
```

Expand Down

0 comments on commit 6392ed9

Please sign in to comment.