Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Added web3.currentProvider replacement documentation (MetaMask#229)
Browse files Browse the repository at this point in the history
* added web3.currentProvider replacement documentation

* Update docs/guide/provider-migration.md

Co-authored-by: Mark Stacey <[email protected]>

Co-authored-by: Mark Stacey <[email protected]>
  • Loading branch information
BboyAkers and Gudahtt authored Mar 3, 2021
1 parent 4b9fd41 commit 112b901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/provider-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ We made the following breaking changes to the `window.ethereum` API:
Its removal _may_ affect those who do not use it directly, e.g. if another library you use relies on the object.
* Remove the `ethereum.autoRefreshOnNetworkChange` property
* Consumers can still set this property on the provider, it just won't do anything.
* Deprecate the `web3.currentProvider` method
* Use [@metamask/detect-provider](https://github.com/MetaMask/detect-provider) to detect the current provider.

## Replacing `window.web3`

Expand Down

0 comments on commit 112b901

Please sign in to comment.