@exodus/ethereum-api 3.0.0 → 3.1.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.
- package/LICENSE.md +0 -0
- package/package.json +2 -2
- package/src/tx-log/ethereum-monitor.js +3 -2
package/LICENSE.md
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@exodus/models": "^8.10.4"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "d97519a8bacb8f2d9700248b2d7723fef284c56c"
|
|
38
38
|
}
|
|
@@ -222,8 +222,9 @@ export class EthereumMonitor extends BaseMonitor {
|
|
|
222
222
|
const newAccountState = {}
|
|
223
223
|
const server = this.server
|
|
224
224
|
if (isRpcBalanceAsset(asset)) {
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const balanceHex = await server.getBalanceProxied(ourWalletAddress)
|
|
226
|
+
const balance = parseInt(balanceHex, 16)
|
|
227
|
+
newAccountState.balance = asset.currency.baseUnit(balance)
|
|
227
228
|
}
|
|
228
229
|
const tokenBalancePairs = await Promise.all(
|
|
229
230
|
tokens
|