JoinColony / purser

Interact with Ethereum wallets easily
https://joincolony.github.io/purser
MIT License
84 stars 21 forks source link

Rename MetaMask public config store property #327

Closed rekmarks closed 4 years ago

rekmarks commented 4 years ago

This PR makes @purser/metamask compatible with the latest MetaMask Ethereum provider, which was shipped to production everywhere today.

Motivation

In MetaMask 8.0.x, ethereum.publicConfigStore is renamed ethereum._publicConfigStore, to better reflect its intended nature as an implementation detail and private property.

We've never, to my knowledge, publicized this property in our docs, but were made aware of its use in Colony, when a MetaMask user reported that colony.io had stopped working.

The public config store is slated for removal in an upcoming update to MetaMask, and should not be used by provider consumers for any reason. We recommend using the corresponding events detailed in our (new and improved) documentation.

Summary of Changes

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

rekmarks commented 4 years ago

On review, publicConfigStore should only be accessed for legacy versions of the MetaMask provider (outdated forks), so the variable name should never be a problem.