@exodus/address-provider
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [9.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/address-provider@9.0.0...@exodus/address-provider@9.0.1) (2023-11-24) | ||
### Bug Fixes | ||
- configurable Ledger address provider ([#4877](https://github.com/ExodusMovement/exodus-hydra/issues/4877)) ([1579ce9](https://github.com/ExodusMovement/exodus-hydra/commit/1579ce91dab1a8aa1ccc03d63cfd369e82a28b75)) | ||
## [9.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/address-provider@8.2.0...@exodus/address-provider@9.0.0) (2023-11-23) | ||
@@ -8,0 +14,0 @@ |
@@ -10,3 +10,7 @@ import addressCache from '@exodus/address-cache' | ||
const addressProvider = ({ config } = {}) => { | ||
const addressProviderConfig = { mockAddresses: config.mockAddresses, useTrezor: config.useTrezor } | ||
const addressProviderConfig = { | ||
mockAddresses: config.mockAddresses, | ||
useTrezor: config.useTrezor, | ||
useLedger: config.useLedger, | ||
} | ||
@@ -13,0 +17,0 @@ return { |
@@ -303,5 +303,6 @@ import { Address, AddressSet, WalletAccount } from '@exodus/models' | ||
// TODO: add asset feature flag and only do this check for assets with abstract accounts | ||
const mainAccountName = await this.#getMainAccountName({ walletAccount, assetName }) | ||
if (mainAccountName) { | ||
const asset = this.#getAsset(assetName) | ||
if (asset.api.features.abstractAccounts) { | ||
const mainAccountName = await this.#getMainAccountName({ walletAccount, assetName }) | ||
return address === mainAccountName | ||
@@ -308,0 +309,0 @@ } |
{ | ||
"name": "@exodus/address-provider", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Address provider for deriving and tracking used and unused addresses.", | ||
@@ -81,3 +81,3 @@ "author": "Exodus Movement Inc.", | ||
}, | ||
"gitHead": "8e85fd61e77a1ac86379452b3dce7e96bc306b33" | ||
"gitHead": "8cf0eff8111c5488635737b2355df7cecff06fcb" | ||
} |
66256
1233