Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web3-react/metamask

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-react/metamask - npm Package Compare versions

Comparing version 8.2.0 to 8.2.1

LICENSE

7

dist/index.js

@@ -159,3 +159,8 @@ "use strict";

.catch((error) => {
if (error.code === 4902 && typeof desiredChainIdOrChainParameters !== 'number') {
var _a, _b;
// https://github.com/MetaMask/metamask-mobile/issues/3312#issuecomment-1065923294
const errorCode = ((_b = (_a = error.data) === null || _a === void 0 ? void 0 : _a.originalError) === null || _b === void 0 ? void 0 : _b.code) || error.code;
// 4902 indicates that the chain has not been added to MetaMask and wallet_addEthereumChain needs to be called
// https://docs.metamask.io/guide/rpc-api.html#wallet-switchethereumchain
if (errorCode === 4902 && typeof desiredChainIdOrChainParameters !== 'number') {
if (!this.provider)

@@ -162,0 +167,0 @@ throw new Error('No provider');

5

package.json

@@ -13,3 +13,3 @@ {

},
"version": "8.2.0",
"version": "8.2.1",
"files": [

@@ -33,3 +33,4 @@ "dist/*"

"@web3-react/store": "^8.2.0"
}
},
"gitHead": "6332d11ac377195c0aa516425bf174e22ae0bdf6"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc