@exodus/web3-ethereum 12.4.0 → 12.6.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.
@@ -22,7 +22,7 @@ export function parseAndValidateTypedData(typedData, { chainId: activeChainId })
22
22
  }
23
23
  // Security: checking if the 'message' property includes fields that don't belong to the primary type.
24
24
  if (!Object.hasOwnProperty.call(parsedTypedData.types, parsedTypedData.primaryType)) {
25
- throw new InvalidInputError();
25
+ throw new InvalidInputError(`'message' property includes fields that don't belong to the primary type`);
26
26
  }
27
27
  const allowedFieldsSet = new Set(parsedTypedData.types[parsedTypedData.primaryType].map(({ name }) => name));
28
28
  // Handle cases where the message includes fields that doesn't belong to the primary type.
@@ -44,7 +44,7 @@ export function parseAndValidateTypedData(typedData, { chainId: activeChainId })
44
44
  if (parsedTypedData?.domain?.chainId) {
45
45
  const suppliedChainIdHex = convertChainIdToHex(`${parsedTypedData.domain.chainId}`);
46
46
  if (activeChainId.toLowerCase() !== suppliedChainIdHex) {
47
- throw new InvalidInputError();
47
+ throw new InvalidInputError(`chainId supplied in typed data does not match active chainId`);
48
48
  }
49
49
  }
50
50
  return parsedTypedData;
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": "12.4.0",
4
+ "version": "12.6.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -35,10 +35,10 @@
35
35
  "@exodus/currency": "^2.1.2",
36
36
  "@exodus/ethereum-api": "^6.3.33",
37
37
  "@exodus/web3-constants": "^1.30.0",
38
- "@exodus/web3-ethereum-utils": "^3.28.0",
38
+ "@exodus/web3-ethereum-utils": "^3.29.1",
39
39
  "@exodus/web3-provider": "^3.14.0",
40
40
  "@exodus/web3-rpc-handlers": "^2.21.0",
41
- "@exodus/web3-utils": "^1.44.0",
41
+ "@exodus/web3-utils": "^1.45.0",
42
42
  "bn.js": "^5.2.0",
43
43
  "eth-rpc-errors": "^4.0.3"
44
44
  },
@@ -51,5 +51,5 @@
51
51
  "@exodus/web3-validation": "^1.38.0",
52
52
  "@wallet-standard/base": "^1.0.1"
53
53
  },
54
- "gitHead": "ef0ce5b2df8bcb8602fd6e752272b96017f2a9e6"
54
+ "gitHead": "c3ca91ffe762b459c3b42d9577eef90010cce56d"
55
55
  }