@exodus/web3-ethereum 13.5.0 → 13.6.1

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.
@@ -255,10 +255,6 @@ export function exposeHandlers(rpc, deps) {
255
255
  return sendRawTransaction(rawTransaction);
256
256
  });
257
257
  exposeEvmFunction('personal_sign', approveAndSignMessage);
258
- exposeEvmFunction('eth_sign', async (account, message) =>
259
- // Should we really be using `personalSign` here?
260
- // See: https://docs.metamask.io/guide/signing-data.html#a-brief-history.
261
- approveAndSignMessage(message));
262
258
  exposeEvmFunction('eth_signTypedData_v1', async (typedData) => {
263
259
  await assertTrusted();
264
260
  await ensureUnlocked();
@@ -286,7 +282,7 @@ export function exposeHandlers(rpc, deps) {
286
282
  }
287
283
  return permissions;
288
284
  });
289
- exposeEvmFunction('wallet_requestPermissions', async (requestedPermissions) => {
285
+ exposeEvmFunction('wallet_requestPermissions', async (requestedPermissions = { [ETH_ACCOUNTS_PERMISSION]: {} }) => {
290
286
  const parentCapability = Object.keys(requestedPermissions)[0];
291
287
  if (parentCapability !== ETH_ACCOUNTS_PERMISSION) {
292
288
  // `eth_accounts` is currently the only permission.
@@ -913,12 +913,6 @@ export function validateRequest(value) {
913
913
  validate.errors = [{ keywordLocation: '#/type', instanceLocation: '#' }]
914
914
  return false
915
915
  }
916
- if (data.length < 1) {
917
- validate.errors = [
918
- { keywordLocation: '#/minItems', instanceLocation: '#' },
919
- ]
920
- return false
921
- }
922
916
  if (0 in data && hasOwn(data, 0)) {
923
917
  const err36 = validate.errors
924
918
  const res36 = ref12(data[0])
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": "13.5.0",
4
+ "version": "13.6.1",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -22,7 +22,8 @@
22
22
  "lib/**/*.js"
23
23
  ],
24
24
  "publishConfig": {
25
- "access": "public"
25
+ "access": "public",
26
+ "provenance": false
26
27
  },
27
28
  "repository": {
28
29
  "type": "git",
@@ -49,12 +50,12 @@
49
50
  "eth-rpc-errors": "^4.0.3"
50
51
  },
51
52
  "devDependencies": {
52
- "@exodus/assets": "^11.3.2",
53
- "@exodus/ethereum-meta": "^2.8.4",
53
+ "@exodus/assets": "^11.6.0",
54
+ "@exodus/ethereum-meta": "^2.9.1",
54
55
  "@exodus/json-rpc": "^1.11.0",
55
56
  "@exodus/schemasafe": "^1.0.0",
56
57
  "@exodus/web3-management": "0.36.1",
57
- "@exodus/web3-types": "1.58.0",
58
+ "@exodus/web3-types": "1.59.0",
58
59
  "@exodus/web3-validation": "^1.38.0",
59
60
  "@wallet-standard/base": "^1.0.1"
60
61
  },
@@ -63,5 +64,5 @@
63
64
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Aweb3-ethereum"
64
65
  },
65
66
  "homepage": "https://github.com/ExodusMovement/assets/tree/master/web3/web3-ethereum",
66
- "gitHead": "4a17ab063edca012f7ca2458c31100e6ed816e48"
67
+ "gitHead": "5ae18e36cc5778a3ae1c5978416bcd00803339f5"
67
68
  }