Skip to content

Commit

Permalink
Automatically merged updates to draft EIP(s) 1102
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
bitpshr authored and eip-automerger committed Jul 21, 2018
1 parent 95317d5 commit 5e71d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-1102.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Dapps MUST request an Ethereum provider API by sending a message using the [`win

#### `[2] INJECT`

Ethereum-enabled DOM environments MUST expose an Ethereum provider API as a global `ETHEREUM_PROVIDER` variable on the `window` object.
Ethereum-enabled DOM environments MUST expose an Ethereum provider API as a global `ethereum` variable on the `window` object.

#### `[3] NOTIFY`

Expand All @@ -71,7 +71,7 @@ window.addEventListener('message', function (event) {
if (!event.data || !event.data.type) { return; }
if (event.data.type === 'ETHEREUM_PROVIDER_SUCCESS') {
// Provider API exposed, continue
const networkVersion = await ETHEREUM_PROVIDER.send('net_version', []);
const networkVersion = await ethereum.send('net_version', []);
console.log(networkVersion);
}
});
Expand Down

0 comments on commit 5e71d20

Please sign in to comment.