fix(AssetsView): Align the selected chains data type in the assets view with the nim property
Nim chain selection is a colon separated string, but the assets adapter expects a chainId array for the selection
This commit is contained in:
parent
5586d0f98a
commit
1b67063eac
|
@ -36,6 +36,7 @@ QtObject {
|
|||
|
||||
/* This property holds networks currently selected in the Wallet Main layout */
|
||||
readonly property var networkFilters: networksModule.enabledChainIds
|
||||
readonly property var networkFiltersArray: networkFilters.split(":").filter(Boolean).map(Number)
|
||||
|
||||
readonly property string defaultSelectedKeyUid: userProfile.keyUid
|
||||
readonly property bool defaultSelectedKeyUidMigratedToKeycard: userProfile.isKeycardUser
|
||||
|
|
|
@ -158,7 +158,7 @@ RightTabBaseView {
|
|||
id: assetsViewAdaptor
|
||||
|
||||
accounts: RootStore.addressFilters
|
||||
chains: RootStore.networkFilters
|
||||
chains: RootStore.networkFiltersArray
|
||||
|
||||
marketValueThreshold:
|
||||
RootStore.tokensStore.displayAssetsBelowBalance
|
||||
|
|
|
@ -27,7 +27,7 @@ QObject {
|
|||
image [url] - token's icon for custom tokens
|
||||
decimals [int] - number of decimal places, e.g. 18 for ETH
|
||||
balances [model] - submodel of balances per chain/account
|
||||
chainId [string] - unique identifier of a chain
|
||||
chainId [int] - unique identifier of a chain
|
||||
account [string] - unique identifier of an account
|
||||
balance [string] - balance in basic unit as big integer string
|
||||
marketDetails [object] - object holding market details
|
||||
|
@ -53,7 +53,7 @@ QObject {
|
|||
// should return empty string if no error found
|
||||
property var chainsError: chains => ""
|
||||
|
||||
// list of chain identifiers used for balance calculation
|
||||
// array[Number]list of chain identifiers used for balance calculation
|
||||
property var chains: []
|
||||
|
||||
// list of accounts used for balance calculation
|
||||
|
|
Loading…
Reference in New Issue