@exodus/web3-ethereum-utils 4.0.0 → 4.0.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.
@@ -153,13 +153,12 @@ export const simulateTransactions = async ({ transactions, apiEndpoint, origin,
153
153
  simulationResult.metadata.simulatedLocally = false;
154
154
  const { expectedStateChanges = {}, error } = response.simulationResults.aggregated;
155
155
  if (error) {
156
- const { humanReadableError } = response.simulationResults.aggregated;
157
156
  // ToDo: accept a logger dep and log the error
158
157
  // ToDo: consider pushing an error to the "warnings" list
159
158
  return {
160
159
  kind: 'error',
161
160
  error: 1 /* SimulationErrorMessages.SimulationFailed */,
162
- errorMessage: humanReadableError
161
+ errorMessage: error?.humanReadableError,
163
162
  };
164
163
  }
165
164
  const noExpectedStateChangesDetected = Object.keys(expectedStateChanges).length === 0;
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": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -48,5 +48,5 @@
48
48
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Aweb3-ethereum-utils"
49
49
  },
50
50
  "homepage": "https://github.com/ExodusMovement/assets/tree/master/web3/web3-ethereum-utils",
51
- "gitHead": "9cc59fb6f6de9bdee27a48a9695763d46d3bc07b"
51
+ "gitHead": "4ca0d746f4d34aa284df0eaec95ef06706400f17"
52
52
  }