From b8467a4ba6857858ca90e6586ee93756ddc00273 Mon Sep 17 00:00:00 2001 From: Philipp Piwo Date: Wed, 9 Nov 2022 20:34:01 +0100 Subject: [PATCH] fix: mdw usage --- src/store/plugins/ui/names.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/plugins/ui/names.js b/src/store/plugins/ui/names.js index 3f784afdd..95c15c4f0 100644 --- a/src/store/plugins/ui/names.js +++ b/src/store/plugins/ui/names.js @@ -83,8 +83,8 @@ export default (store) => { commit('set', { key: id }); const sdk = rootState.sdk.then ? await rootState.sdk : rootState.sdk; if (id.startsWith('ak_')) { - const nameEntry = (await sdk.middleware.api.getPointeesById(id)) - .active.account_pubkey?.[0]; + const nameEntry = (await sdk.middleware.api.getNamePointees(id)) + .active.accountPubkey?.[0]; if (!nameEntry) return; commit('set', { address: id, @@ -133,7 +133,7 @@ export default (store) => { const names = (await Promise.all( rootState.accounts.list.map(({ address }) => Promise.all([ getPendingNameClaimTransactions(address), - sdk.middleware.api.getOwnedBy(address) + sdk.middleware.api.getNamesOwnedBy(address) .then(({ active, topBid }) => [active, topBid]), ])), )).flat(Infinity);