@exodus/solana-api 1.2.10 → 1.2.11

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -21,5 +21,5 @@
21
21
  "devDependencies": {
22
22
  "node-fetch": "~1.6.3"
23
23
  },
24
- "gitHead": "9ea01d6b464b1a6a23e49f3634b9e661e755efc8"
24
+ "gitHead": "8778d0f9bea0221cbfab35c8e7781ec5dd4d00af"
25
25
  }
package/src/index.js CHANGED
@@ -121,10 +121,13 @@ class Api {
121
121
  if (txDetail === null) return
122
122
 
123
123
  const timestamp = txDetail.blockTime * 1000
124
+ const parsedTx = Api.parseTransaction(address, txDetail, tokenAccountsByOwner)
125
+ if (!parsedTx.from) return // cannot parse it
126
+
124
127
  transactions.push({
125
128
  timestamp,
126
129
  date: new Date(timestamp),
127
- ...Api.parseTransaction(address, txDetail, tokenAccountsByOwner),
130
+ ...parsedTx,
128
131
  })
129
132
  })
130
133
  } catch (err) {