@exodus/web3-ethereum-utils 3.31.1 → 3.32.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.
@@ -33,6 +33,9 @@ const createBalanceAmount = (amount, { decimals, symbol }) => {
33
33
  const handleExpectedBalanceChange = (expectedBalanceChange, simulationResult, { network }) => {
34
34
  const { willApprove, willSend, willReceive } = simulationResult.balanceChanges;
35
35
  const { data, kind } = expectedBalanceChange.rawInfo;
36
+ if (kind === 'FARCASTER_CHANGE_RECOVERY_ADDRESS' || kind === 'ERC20_PERMIT') {
37
+ return;
38
+ }
36
39
  const { asset } = data;
37
40
  // ERC1155 is a multi-token standard (https://eips.ethereum.org/EIPS/eip-1155) and can be used for NFTs as well.
38
41
  const isNftTransfer = kind === 'ERC721_TRANSFER' ||
@@ -133,6 +136,7 @@ export const simulateTransactions = async ({ transactions, apiEndpoint, origin,
133
136
  if (!response) {
134
137
  return successDefaultResult;
135
138
  }
139
+ simulationResult.metadata.simulatedLocally = false;
136
140
  const { expectedStateChanges = {}, error } = response.simulationResults.aggregated;
137
141
  if (error) {
138
142
  // 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.31.1",
4
+ "version": "3.32.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -33,8 +33,8 @@
33
33
  "@exodus/basic-utils": "^2.5.1",
34
34
  "@exodus/ethereumjs-common": "^2.4.0-exodus.6",
35
35
  "@exodus/ethereumjs-tx": "^3.3.0-exodus.6",
36
- "@exodus/web3-utils": "^1.45.0",
36
+ "@exodus/web3-utils": "^1.46.0",
37
37
  "@metamask/eth-sig-util": "^4.0.1"
38
38
  },
39
- "gitHead": "640977164352986134b0f62de8522d20283b6ba2"
39
+ "gitHead": "c4feab67861d3cfc41f28be38f4d61a82e7d78d3"
40
40
  }