Skip to content

Commit

Permalink
Merge pull request #222 from Consensys/feat/CZK-890-set-addr-cointype…
Browse files Browse the repository at this point in the history
…-2147542792

feat: added setAddr record for linea address when registering by default
  • Loading branch information
Julink-eth authored Jul 31, 2024
2 parents 627d908 + 5240ea2 commit 28cfd58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ const RegistrationPoh = ({ nameDetails, isLoading }: Props) => {
if (item.queue.includes('profile') && reverseRecord) {
const recordsWithoutEth = item.records.filter((record) => record.key !== 'eth')
const newRecords: ProfileRecord[] = [
{ key: 'linea', group: 'address', type: 'addr', value: address! },
{ key: 'eth', group: 'address', type: 'addr', value: address! },
...recordsWithoutEth,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ const Profile = ({ name, callback, registrationData, resolverExists }: Props) =>
key={field.id}
recordKey={field.key}
group={field.group}
disabled={field.key === 'eth' && registrationData.reverseRecord}
disabled={
(field.key === 'eth' || field.key === 'linea') && registrationData.reverseRecord
}
label={labelForRecord(field)}
secondaryLabel={secondaryLabelForRecord(field)}
placeholder={placeholderForRecord(field)}
Expand Down

0 comments on commit 28cfd58

Please sign in to comment.