Skip to content

Commit 67779ab

Browse files
fix: contract calls count (#815)
1 parent 43c35d5 commit 67779ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/contractDetails.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export const useContractDetailsStore = defineStore('contractDetails', () => {
6767

6868
async function fetchContractCallsCount() {
6969
contractCallsCount.value = null
70-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/transactions/count/${contractId.value}`)
71-
contractCallsCount.value = Object.values(data?.contractCallTx ?? {}).reduce((sum, value) => sum + value, 0)
70+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/transactions/count?id=${contractId.value}`)
71+
contractCallsCount.value = data
7272
}
7373

7474
async function fetchContractCreationTx() {

0 commit comments

Comments
 (0)