diff --git a/e2e/specs/stateless/profileEditor.spec.ts b/e2e/specs/stateless/profileEditor.spec.ts
index 71d2af633..546109be3 100644
--- a/e2e/specs/stateless/profileEditor.spec.ts
+++ b/e2e/specs/stateless/profileEditor.spec.ts
@@ -6,9 +6,6 @@ import { emptyAddress } from '@app/utils/constants'
const oldResolver = '0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB'
const newResolver = '0x0E801D84Fa97b50751Dbf25036d067dCf18858bF'
-// This not an actual resovler but a dummy address that has been inserted to the second to last known resolver
-// to test the situation where unwrapped do not show a warning when editing profile.
-const dummyRersolver = '0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750'
const DEFAULT_RECORDS = {
texts: [
@@ -324,35 +321,6 @@ test.describe('wrapped', () => {
})
})
-test.describe('resolver status', () => {
- test('should not show warning when editing unwrapped name with second to last resolver', async ({
- page,
- login,
- makeName,
- makePageObject,
- }) => {
- const name = await makeName({
- label: 'unwrapped',
- type: 'legacy',
- resolver: dummyRersolver,
- })
-
- const morePage = makePageObject('MorePage')
- const profilePage = makePageObject('ProfilePage')
-
- await morePage.goto(name)
- await login.connect()
-
- await expect(morePage.resolver).toHaveText(dummyRersolver)
- await expect(page.getByText('Latest')).toBeVisible()
-
- await profilePage.goto(name)
-
- await profilePage.editProfileButton.click()
- await expect(profilePage.profileEditor.getByText('Edit your profile')).toBeVisible()
- })
-})
-
test.describe('subgraph errors', () => {
test('should disable edit profile button when there is a subgraph error', async ({
page,
diff --git a/e2e/specs/stateless/sendFlow.spec.ts b/e2e/specs/stateless/sendFlow.spec.ts
index cdf2ce604..a6b3d1c60 100644
--- a/e2e/specs/stateless/sendFlow.spec.ts
+++ b/e2e/specs/stateless/sendFlow.spec.ts
@@ -24,7 +24,7 @@ test.describe('Happy', () => {
await morePage.sendButton.click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
- await page.getByTestId('owner-checkbox').click()
+ await page.getByTestId('manager-checkbox').click()
await sendNameModal.clickNextButton()
await transactionModal.autoComplete()
@@ -55,6 +55,7 @@ test.describe('Happy', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
// Should not allow the manager to change the owner
await expect(page.getByTestId('Make Owner')).toHaveCount(0)
@@ -89,7 +90,7 @@ test.describe('Happy', () => {
await login.connect()
await morePage.sendButton.click()
- await page.getByTestId('manager-checkbox').click()
+ await page.getByTestId('owner-checkbox').click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -124,7 +125,7 @@ test.describe('Happy', () => {
await morePage.sendButton.click()
- await page.getByTestId('owner-checkbox').click()
+ await page.getByTestId('manager-checkbox').click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -157,6 +158,8 @@ test.describe('Happy', () => {
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
+ await page.getByTestId('owner-checkbox').click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
await transactionModal.confirm()
@@ -165,6 +168,8 @@ test.describe('Happy', () => {
// Should work after going back after first transaction
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
+ await page.getByTestId('manager-checkbox').click()
+ await page.getByTestId('owner-checkbox').click()
await sendNameModal.clickNextButton()
await transactionModal.autoComplete()
@@ -209,6 +214,7 @@ test.describe('Unwrapped subnames', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -246,6 +252,7 @@ test.describe('Unwrapped subnames', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
await transactionModal.autoComplete()
@@ -343,6 +350,7 @@ test.describe('Wrapped subnames', () => {
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
await expect(page.getByText('Make manager')).toBeVisible()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -382,6 +390,7 @@ test.describe('Wrapped subnames', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('manager-checkbox').click()
await expect(page.getByText('Make manager')).toBeVisible()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -450,6 +459,7 @@ test.describe('Wrapped subname with PCC burned', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('owner-checkbox').click()
await expect(page.getByText('Make owner')).toBeVisible()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
@@ -483,6 +493,7 @@ test.describe('Wrapped name', () => {
await login.connect()
await morePage.sendButton.click()
+ await page.getByTestId('owner-checkbox').click()
await expect(page.getByText('Make owner')).toBeVisible()
await page.getByTestId('dogfood').type(accounts.getAddress('user3'))
await sendNameModal.clickNextButton()
diff --git a/src/components/pages/profile/[name]/tabs/MoreTab/Resolver.tsx b/src/components/pages/profile/[name]/tabs/MoreTab/Resolver.tsx
index e8da401cc..4e673aa17 100644
--- a/src/components/pages/profile/[name]/tabs/MoreTab/Resolver.tsx
+++ b/src/components/pages/profile/[name]/tabs/MoreTab/Resolver.tsx
@@ -1,13 +1,12 @@
import { useTranslation } from 'react-i18next'
import styled, { css } from 'styled-components'
-import { Skeleton, Tag, Typography, mq } from '@ensdomains/thorin'
+import { Typography, mq } from '@ensdomains/thorin'
import { cacheableComponentStyles } from '@app/components/@atoms/CacheableComponent'
import { DisabledButtonWithTooltip } from '@app/components/@molecules/DisabledButtonWithTooltip'
import RecordItem from '@app/components/RecordItem'
import { useHasGlobalError } from '@app/hooks/errors/useHasGlobalError'
-import { useResolverType } from '@app/hooks/resolver/useResolverType'
import { useTransactionFlow } from '@app/transaction-flow/TransactionFlowProvider'
import { TabWrapper } from '../../../TabWrapper'
@@ -60,16 +59,6 @@ const InnerHeading = styled.div(
`,
)
-const TagsContainer = styled.div(
- ({ theme }) => css`
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- gap: ${theme.space['1']};
- `,
-)
-
const Resolver = ({
name,
canEditResolver,
@@ -96,54 +85,43 @@ const Resolver = ({
})
}
- const { data: { type: resolverType, tone, isWildcard } = {}, isLoading: isResolverTypeLoading } =
- useResolverType(name)
-
return (
-
-
-
-
-
- {t('tabs.more.resolver.label')}
-
-
- {t(`tabs.more.resolver.${resolverType}`)}
- {isWildcard && (
- {t('tabs.more.resolver.wildcard')}
- )}
-
-
- {canEdit && !hasGlobalError && (
- <>
- {canEditResolver ? (
-
- ) : (
-
- )}
- >
- )}
-
-
-
-
+
+
+
+
+ {t('tabs.more.resolver.label')}
+
+
+ {canEdit && !hasGlobalError && (
+ <>
+ {canEditResolver ? (
+
+ ) : (
+
+ )}
+ >
+ )}
+
+
+
)
}
diff --git a/src/transaction-flow/input/SendName-flow.tsx b/src/transaction-flow/input/SendName-flow.tsx
index 930856b5f..18405e786 100644
--- a/src/transaction-flow/input/SendName-flow.tsx
+++ b/src/transaction-flow/input/SendName-flow.tsx
@@ -153,8 +153,8 @@ export const SendName = ({ data, dispatch, onDismiss }: Props) => {
} = useForm({
mode: 'onChange',
defaultValues: {
- managerChoice: 'manager',
- ownerChoice: 'owner',
+ managerChoice: '',
+ ownerChoice: '',
dogfoodRaw: '',
address: '',
},
@@ -162,11 +162,14 @@ export const SendName = ({ data, dispatch, onDismiss }: Props) => {
const managerChoiceWatch = watch('managerChoice')
const ownerChoiceWatch = watch('ownerChoice')
+ const addressWatch = watch('address')
const abilities = useAbilities(name)
const { canSendManager, canSendOwner, sendNameFunctionCallDetails } = abilities.data || {}
const loadingAbilities = abilities.isLoading
const hasChoice =
- (canSendManager && managerChoiceWatch) || (canSendOwner && ownerChoiceWatch) || loadingAbilities
+ !loadingAbilities &&
+ addressWatch &&
+ ((canSendManager && managerChoiceWatch) || (canSendOwner && ownerChoiceWatch))
const hasErrors = Object.keys(formState.errors || {}).length > 0
@@ -203,7 +206,6 @@ export const SendName = ({ data, dispatch, onDismiss }: Props) => {
@@ -220,7 +222,6 @@ export const SendName = ({ data, dispatch, onDismiss }: Props) => {
@@ -257,7 +258,7 @@ export const SendName = ({ data, dispatch, onDismiss }: Props) => {
}
trailing={
-