From c209663018b8518320fd3e50f705145ded1f378e Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Sun, 5 May 2024 17:33:21 +1000 Subject: [PATCH 01/13] refactor: use produceNameId from latest sdk --- src/pages/aens/AuctionDetails.vue | 4 ++-- src/pages/aens/NameDetails.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/aens/AuctionDetails.vue b/src/pages/aens/AuctionDetails.vue index bf5cac3c1..6fccba75a 100644 --- a/src/pages/aens/AuctionDetails.vue +++ b/src/pages/aens/AuctionDetails.vue @@ -44,7 +44,7 @@ diff --git a/src/pages/aens/NameDetails.vue b/src/pages/aens/NameDetails.vue index a2213768d..fdb404f80 100644 --- a/src/pages/aens/NameDetails.vue +++ b/src/pages/aens/NameDetails.vue @@ -75,7 +75,7 @@ export default { ...mapGetters(['currentNetwork']), ...mapState('names', { details({ owned }) { - return owned?.names.find(({ name }) => name === this.name); + return owned.find(({ name }) => name === this.name); }, isDefaultName(state, { getDefault }) { return this.address && this.name === getDefault(this.address); @@ -109,8 +109,8 @@ export default { } }, async goToTransactionDetails() { - const { hash } = await this.$store.state.sdk.middleware.api - .getTxByIndex(this.details.createdAtTxIdx); + const { hash } = await this.$store.state.sdk.middleware2.api + .getTx(this.details.createdAtTxIdx); await this.$router.push(ENV_MOBILE_DEVICE ? { name: 'transaction-details', params: { hash } } : `${this.currentNetwork.explorerUrl}/transactions/${hash}`); diff --git a/src/pages/aens/NameList.vue b/src/pages/aens/NameList.vue index 0de5f9200..ddccb1063 100644 --- a/src/pages/aens/NameList.vue +++ b/src/pages/aens/NameList.vue @@ -5,11 +5,11 @@

{{ $t('name.list.personal-note') }}

{{ $t('name.list.personal-explanation') }}

-