diff --git a/components/gallery/GalleryItemTabsPanel/GalleryItemActivityTable.vue b/components/gallery/GalleryItemTabsPanel/GalleryItemActivityTable.vue index 2af1265722..06e5dea7b7 100644 --- a/components/gallery/GalleryItemTabsPanel/GalleryItemActivityTable.vue +++ b/components/gallery/GalleryItemTabsPanel/GalleryItemActivityTable.vue @@ -133,7 +133,7 @@ onMounted(async () => { const interaction = computed(() => dprops.interactions.map((key) => { - if (['ksm', 'ahk', 'ahp'].includes(urlPrefix.value)) { + if (['ksm', 'ahk', 'ahp', 'base'].includes(urlPrefix.value)) { switch (key) { case 'MINTNFT': return 'MINT' diff --git a/services/profile.ts b/services/profile.ts index 8b8b822dda..b8bbf69037 100644 --- a/services/profile.ts +++ b/services/profile.ts @@ -1,5 +1,5 @@ import { $fetch, FetchError } from 'ofetch' - +import { isEthereumAddress } from '@polkadot/util-crypto' const BASE_URL = window.location.host === 'kodadot.xyz' ? 'https://profile.kodadot.workers.dev/' @@ -63,7 +63,7 @@ export type FollowRequest = { } export const toSubstrateAddress = (address: string) => - formatAddress(address, 42) + isEthereumAddress(address) ? address : formatAddress(address, 42) const convertToSubstrateAddress = (body: FollowRequest): FollowRequest => ({ initiatorAddress: toSubstrateAddress(body.initiatorAddress), diff --git a/utils/coinprice.ts b/utils/coinprice.ts index 0da84caebb..52327a2547 100644 --- a/utils/coinprice.ts +++ b/utils/coinprice.ts @@ -64,6 +64,7 @@ export const getPrice = async (id: string): Promise => { const tokenMap = { KSM: 'kusama', DOT: 'polkadot', + ETH: 'ethereum', } export const getApproximatePriceOf = async (id: string): Promise => {