@toruslabs/ethereum-controllers 5.3.1 → 5.3.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toruslabs/ethereum-controllers",
3
- "version": "5.3.1",
3
+ "version": "5.3.2",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -24,9 +24,9 @@
24
24
  "@ethereumjs/util": "^9.0.1",
25
25
  "@metamask/eth-sig-util": "^7.0.1",
26
26
  "@metamask/rpc-errors": "^6.1.0",
27
- "@toruslabs/base-controllers": "^5.3.1",
27
+ "@toruslabs/base-controllers": "^5.3.2",
28
28
  "@toruslabs/http-helpers": "^6.0.0",
29
- "@toruslabs/openlogin-jrpc": "^6.2.6",
29
+ "@toruslabs/openlogin-jrpc": "^6.2.7",
30
30
  "async-mutex": "^0.4.1",
31
31
  "bignumber.js": "^9.1.2",
32
32
  "bn.js": "^5.2.1",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "889087e7be65b596211da22fe1821c813b583205",
67
+ "gitHead": "268a81b859df92f5a30e4f3f3cec0382e88fef9c",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.4"
@@ -177,7 +177,7 @@ export default class PreferencesController
177
177
 
178
178
  const finalTx = this.cancelTxCalculate([...storePastTx, formattedTx]);
179
179
  tx.is_cancel = formattedTx.is_cancel;
180
- tx.to = tx.to.toLowerCase();
180
+ tx.to = tx.to?.toLowerCase();
181
181
  tx.from = tx.from.toLowerCase();
182
182
 
183
183
  this.updateState({ formattedPastTransactions: finalTx }, address);
@@ -388,7 +388,7 @@ export default class PreferencesController
388
388
  x.chain_id === SUPPORTED_NETWORKS[this.getProviderConfig().chainId].chainId &&
389
389
  x.to &&
390
390
  x.from &&
391
- (lowerCaseSelectedAddress === x.from.toLowerCase() || lowerCaseSelectedAddress === x.to.toLowerCase())
391
+ (lowerCaseSelectedAddress === x.from.toLowerCase() || lowerCaseSelectedAddress === x.to?.toLowerCase())
392
392
  ) {
393
393
  if (x.status !== "confirmed") {
394
394
  pendingTx.push(x);