@exodus/web3-ethereum 13.6.3 → 13.6.4

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.
@@ -41,8 +41,11 @@ export function parseAndValidateTypedData(typedData, { chainId: activeChainId })
41
41
  }
42
42
  }
43
43
  // Security: checking if the requested chain matches the active chain ID.
44
- if (parsedTypedData?.domain?.chainId) {
44
+ if (parsedTypedData?.domain?.chainId != null) {
45
45
  const suppliedChainIdHex = convertChainIdToHex(`${parsedTypedData.domain.chainId}`);
46
+ if (parseInt(suppliedChainIdHex, 16) === 0) {
47
+ throw new InvalidInputError(`eip-155 replay protection required`);
48
+ }
46
49
  if (activeChainId.toLowerCase() !== suppliedChainIdHex) {
47
50
  throw new InvalidInputError(`chainId supplied in typed data does not match active chainId`);
48
51
  }
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.6.3",
4
+ "version": "13.6.4",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -58,7 +58,7 @@
58
58
  "@exodus/json-rpc": "^1.11.0",
59
59
  "@exodus/schemasafe": "^1.0.0",
60
60
  "@exodus/web3-management": "0.36.1",
61
- "@exodus/web3-types": "1.59.2",
61
+ "@exodus/web3-types": "1.60.0",
62
62
  "@exodus/web3-validation": "^1.38.0",
63
63
  "@wallet-standard/base": "^1.0.1",
64
64
  "lodash": "^4.17.21"
@@ -68,5 +68,5 @@
68
68
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Aweb3-ethereum"
69
69
  },
70
70
  "homepage": "https://github.com/ExodusMovement/assets/tree/master/web3/web3-ethereum",
71
- "gitHead": "7ce5dcd520154f8631a0a260dd29b794f573dd9d"
71
+ "gitHead": "1fed078748506f0d4601dfdd54b8c3c28ff466cf"
72
72
  }