@exodus/ethereum-api 7.0.8 → 7.0.10

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": "@exodus/ethereum-api",
3
- "version": "7.0.8",
3
+ "version": "7.0.10",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  "@exodus/asset-lib": "^3.7.1",
18
18
  "@exodus/crypto": "^1.0.0-rc.0",
19
19
  "@exodus/currency": "^2.1.3",
20
- "@exodus/ethereum-lib": "^4.1.2",
20
+ "@exodus/ethereum-lib": "^4.2.0",
21
21
  "@exodus/ethereumjs-util": "^7.1.0-exodus.6",
22
22
  "@exodus/fetch": "^1.3.0-beta.4",
23
23
  "@exodus/simple-retry": "^0.0.6",
@@ -37,6 +37,5 @@
37
37
  "@exodus/assets-base": "^8.1.14",
38
38
  "@exodus/assets-testing": "file:../../../__testing__",
39
39
  "@exodus/models": "^11.0.0"
40
- },
41
- "gitHead": "46619123d357a3f820e821d888b373a64565347c"
40
+ }
42
41
  }
@@ -30,6 +30,8 @@ export default function getLogItemsFromServerTx({
30
30
  const tokenTransfersByTokenName = getTransfersByTokenName(erc20Transfers, tokensByAddress)
31
31
  const toAddress = tryFindExternalRecipient(ethereumTransfers, ourWalletAddress)
32
32
  const ourWalletWasSender = serverTx.from === ourWalletAddress
33
+ const METHOD_ID_LENGTH = 10
34
+ const methodId = serverTx.input && { methodId: serverTx.input.substring(0, METHOD_ID_LENGTH) }
33
35
 
34
36
  const logItemCommonProperties = {
35
37
  confirmations,
@@ -63,6 +65,7 @@ export default function getLogItemsFromServerTx({
63
65
  data: serverTx.input || '0x',
64
66
  nonce,
65
67
  gasLimit,
68
+ ...methodId,
66
69
  },
67
70
  ...(ourWalletWasSender
68
71
  ? { from: [], to: toAddress, feeAmount, feeCoinName: asset.feeAsset.name }
package/LICENSE.md DELETED
File without changes