Skip to content

Commit

Permalink
Merge pull request #1458 from aeternity/fix/mdw-usage
Browse files Browse the repository at this point in the history
fix: mdw usage
  • Loading branch information
thepiwo authored Nov 15, 2022
2 parents 9516580 + b8467a4 commit 1c5b0e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/plugins/ui/names.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1c5b0e3

Please sign in to comment.