@exodus/web3-ethereum-utils 3.11.0 → 3.13.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.
@@ -12,5 +12,5 @@ declare type SimulateTransactionParams = Required<Pick<CreateSimulateTransaction
12
12
  headers?: Record<string, string>;
13
13
  assetName: string;
14
14
  };
15
- export declare const simulateTransactions: ({ transactions, apiEndpoint, origin, simulationResult, headers, assetName, }: SimulateTransactionParams) => Promise<void> | never;
15
+ export declare const simulateTransactions: ({ transactions, apiEndpoint, origin, simulationResult, headers, assetName, }: SimulateTransactionParams) => Promise<void>;
16
16
  export {};
@@ -121,6 +121,9 @@ export const simulateTransactions = async ({ transactions, apiEndpoint, origin,
121
121
  payload,
122
122
  headers,
123
123
  });
124
+ if (!response) {
125
+ return;
126
+ }
124
127
  const { expectedStateChanges = {}, error } = response.simulationResults.aggregated;
125
128
  if (error) {
126
129
  // ToDo: accept a logger dep and log the error
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exodus/web3-ethereum-utils",
3
3
  "description": "Web3 Ethereum utils.",
4
- "version": "3.11.0",
4
+ "version": "3.13.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -26,13 +26,13 @@
26
26
  "build": "yarn clean && tsc"
27
27
  },
28
28
  "devDependencies": {
29
- "@exodus/web3-types": "^1.38.0"
29
+ "@exodus/web3-types": "^1.40.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@exodus/ethereumjs-common": "^2.4.0-exodus.6",
33
33
  "@exodus/ethereumjs-tx": "^3.3.0-exodus.6",
34
- "@exodus/web3-utils": "^1.32.0",
34
+ "@exodus/web3-utils": "^1.34.0",
35
35
  "@metamask/eth-sig-util": "^4.0.1"
36
36
  },
37
- "gitHead": "69a43d816382e5e1ab24186cfa3633186d0fe3eb"
37
+ "gitHead": "3153350f444c9d5c8a65bcf4abb45d5f1c1e3e9d"
38
38
  }