@exodus/ethereum-api 8.9.2 → 8.9.3
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/CHANGELOG.md +9 -0
- package/package.json +2 -2
- package/src/get-balance-for-address.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.9.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.9.2...@exodus/ethereum-api@8.9.3) (2024-07-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* use proxied balance ([#2637](https://github.com/ExodusMovement/assets/issues/2637)) ([639ee0f](https://github.com/ExodusMovement/assets/commit/639ee0f55bc53a9e31c553865902ca3f0ad0f0b8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [8.9.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.9.1...@exodus/ethereum-api@8.9.2) (2024-07-03)
|
|
7
16
|
|
|
8
17
|
### Code Refactoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.3",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"type": "git",
|
|
67
67
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "719f0e01b420fdaa1722cc8b9df5c2d80763349a"
|
|
70
70
|
}
|
|
@@ -4,7 +4,7 @@ export const createGetBalanceForAddress = ({ asset, server }) => {
|
|
|
4
4
|
assert(asset, 'asset is required')
|
|
5
5
|
assert(server, 'server is required')
|
|
6
6
|
return async (address) => {
|
|
7
|
-
const balance = await server.
|
|
7
|
+
const balance = await server.getBalanceProxied(address)
|
|
8
8
|
if (typeof balance === 'string') {
|
|
9
9
|
// hex-response from eth_getBalance node
|
|
10
10
|
return asset.currency.baseUnit(balance)
|