From 365b494576fe7bf6687bf6c7c001c4fe354ff0da Mon Sep 17 00:00:00 2001
From: Jan Michek <15363559+janmichek@users.noreply.github.com>
Date: Tue, 12 Dec 2023 10:58:53 +0100
Subject: [PATCH] fix: remove unused attempt for account names counter (#600)
---
src/components/AccountDetailsPanel.vue | 11 -----------
src/stores/accountDetails.js | 9 ---------
src/utils/hints/accountHints.js | 1 -
3 files changed, 21 deletions(-)
diff --git a/src/components/AccountDetailsPanel.vue b/src/components/AccountDetailsPanel.vue
index 2167468bd..f15438478 100644
--- a/src/components/AccountDetailsPanel.vue
+++ b/src/components/AccountDetailsPanel.vue
@@ -61,17 +61,6 @@
{{ formatNumber(accountDetails.totalTransactionsCount) }}
-
-
-
- {{ formatNumber(accountDetails.namesCount) }}
- |
-
diff --git a/src/stores/accountDetails.js b/src/stores/accountDetails.js
index 8fe8191ab..98ea3492b 100644
--- a/src/stores/accountDetails.js
+++ b/src/stores/accountDetails.js
@@ -17,7 +17,6 @@ export const useAccountStore = defineStore('account', () => {
const rawAccountDetails = ref(null)
const totalAccountTransactionsCount = ref(null)
- const accountNamesCount = ref(null)
const selectedKeyblock = ref(null)
const selectedMicroblock = ref(null)
const selectedKeyblockMicroblocks = ref(null)
@@ -34,7 +33,6 @@ export const useAccountStore = defineStore('account', () => {
...rawAccountDetails.value,
balance: formatAettosToAe(rawAccountDetails.value.balance),
totalTransactionsCount: totalAccountTransactionsCount.value,
- namesCount: accountNamesCount.value,
isGeneralized: rawAccountDetails.value.kind === 'generalized',
}
: null,
@@ -70,7 +68,6 @@ export const useAccountStore = defineStore('account', () => {
fetchAccountTransactions({ accountId, limit }),
fetchTotalAccountTransactionsCount(accountId),
fetchAccountNames({ accountId, limit }),
- fetchAccountNamesCount(accountId),
fetchAccountActivities({ accountId, limit }),
]),
])
@@ -126,11 +123,6 @@ export const useAccountStore = defineStore('account', () => {
)
}
- async function fetchAccountNamesCount(accountId) {
- const { data } = await axios.get(`${MIDDLEWARE_URL}/v2/names?owned_by=${accountId}&state=active`)
- accountNamesCount.value = data.data.length
- }
-
async function fetchAccountActivities({ accountId, limit, queryParameters } = {}) {
rawAccountActivities.value = null
const defaultParameters = `/v2/accounts/${accountId}/activities?limit=${limit ?? 10}`
@@ -166,7 +158,6 @@ export const useAccountStore = defineStore('account', () => {
return {
rawAccountDetails,
totalAccountTransactionsCount,
- accountNamesCount,
selectedKeyblock,
selectedMicroblock,
selectedKeyblockMicroblocks,
diff --git a/src/utils/hints/accountHints.js b/src/utils/hints/accountHints.js
index 90bd18098..0c163fc6c 100644
--- a/src/utils/hints/accountHints.js
+++ b/src/utils/hints/accountHints.js
@@ -3,7 +3,6 @@ export const accountHints = {
balance: 'Amount of AE owned by the account.',
value: 'USD value of AE owned by the account.',
transactions: 'Amount of transactions where the account was involved.',
- aensNames: 'Amount of names owned by the account.',
nonce: 'The nonce that was used to execute the last transaction for the account. The nonce is used to prevent replay attacks and keep transactions in order. If a transaction with a way higher nonce is broadcasted, it won\'t be executed until all transactions with lower nonces are executed.',
contractId: 'The contract that is attached to the account to create generalized account and takes over its authorization logic.',
apiLinks: 'Node API link of the account.',