Skip to content

Commit

Permalink
Merge pull request #225 from Consensys/fix/linea-cointype-registration
Browse files Browse the repository at this point in the history
fix: linea cointype field while registering
  • Loading branch information
Julink-eth authored Aug 2, 2024
2 parents 58a1d70 + 04d2f4a commit d139c5c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ const RegistrationPoh = ({ nameDetails, isLoading }: Props) => {
dispatch({
name: 'setProfileData',
payload: {
records: [{ key: 'eth', group: 'address', type: 'addr', value: address! }],
records: [
{ key: 'linea', group: 'address', type: 'addr', value: address! },
{ key: 'eth', group: 'address', type: 'addr', value: address! },
],
clearRecords: resolverExists,
resolverAddress: defaultResolverAddress,
},
Expand All @@ -160,7 +163,9 @@ const RegistrationPoh = ({ nameDetails, isLoading }: Props) => {

// If profile is in queue and reverse record is selected, make sure that eth record is included and is set to address
if (item.queue.includes('profile') && reverseRecord) {
const recordsWithoutEth = item.records.filter((record) => record.key !== 'eth')
const recordsWithoutEth = item.records.filter(
(record) => record.key !== 'eth' && record.key !== 'linea',
)
const newRecords: ProfileRecord[] = [
{ key: 'linea', group: 'address', type: 'addr', value: address! },
{ key: 'eth', group: 'address', type: 'addr', value: address! },
Expand Down

0 comments on commit d139c5c

Please sign in to comment.