@exodus/web3-ethereum 11.9.0 → 11.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ const ETHEREUM_INIT_METHODS_SET = new Set([
11
11
  'selectedAddress',
12
12
  'send',
13
13
  'sendAsync',
14
- '_metamask',
15
14
  ]);
16
15
  /**
17
16
  * createEthereumProviderProxy creates a light weight proxy that
@@ -102,6 +101,22 @@ export const createEthereumProviderProxy = ({ isWalletNameFlag, impersonateOther
102
101
  if (ETHEREUM_INIT_METHODS_SET.has(property)) {
103
102
  return contextualFunction(property, true);
104
103
  }
104
+ if (property === '_metamask') {
105
+ return {
106
+ isUnlocked: async (...args) => {
107
+ if (!provider._metamask) {
108
+ await initProvider();
109
+ }
110
+ return provider._metamask.isUnlocked(...args);
111
+ },
112
+ requestBatch: async (...args) => {
113
+ if (!provider._metamask) {
114
+ await initProvider();
115
+ }
116
+ return provider._metamask.requestBatch(...args);
117
+ },
118
+ };
119
+ }
105
120
  };
106
121
  const set = (target, prop, value) => {
107
122
  // Allow setting these specific properties as the ecosystem relies on that.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exodus/web3-ethereum",
3
3
  "description": "Apps connectivity library for EVM-compatible chains.",
4
- "version": "11.9.0",
4
+ "version": "11.11.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -46,7 +46,7 @@
46
46
  "@exodus/assets": "^8.0.95",
47
47
  "@exodus/json-rpc": "^1.11.0",
48
48
  "@exodus/schemasafe": "^1.0.0",
49
- "@exodus/web3-management": "0.27.0",
49
+ "@exodus/web3-management": "0.28.0",
50
50
  "@exodus/web3-types": "0.0.0",
51
51
  "@exodus/web3-validation": "^1.37.1",
52
52
  "@wallet-standard/base": "^1.0.1"
@@ -54,5 +54,5 @@
54
54
  "peerDependencies": {
55
55
  "@exodus/assets": "^8.0.95"
56
56
  },
57
- "gitHead": "240916fc5a64fa82a4f571e0466e657f9c75a841"
57
+ "gitHead": "156e5cc7d72f8456e5d1c681c9a8f9cd081294ff"
58
58
  }