Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

(Fix) #1587 - Ens mislabeled as eth#1601

Merged
Agupane merged 3 commits intodevelopmentfrom
1587-ens-mislabeled-as-eth
Nov 16, 2020
Merged

(Fix) #1587 - Ens mislabeled as eth#1601
Agupane merged 3 commits intodevelopmentfrom
1587-ens-mislabeled-as-eth

Conversation

@Agupane
Copy link
Contributor

@Agupane Agupane commented Nov 13, 2020

Closes #1587 by:

  • Fixed default condition for incoming transactions: instead of using native symbol if fetching the symbol fails, first check if it's an ENS address, because the ENS contract address does not support symbol() method
  • For outgoing transactions, there was a missing await on symbol() so I added it

@Agupane Agupane self-assigned this Nov 13, 2020
@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Nov 13, 2020

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@ghost
Copy link

ghost commented Nov 13, 2020

Travis automatic deployment:
https://pr1601--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Nov 13, 2020

Travis automatic deployment:
https://pr1601--safereact.review.gnosisdev.com/rinkeby/app

}

export const isENSContract = (contractAddress: string): boolean => {
const ENS_TOKEN_CONTRACT = '0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For which network is this ENS contract address?

Copy link
Contributor Author

@Agupane Agupane Nov 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For both rinkeby and mainnet, not sure if for the deployed ENS contract for other networks have this issue with the symbol() method too. In any case would be better to have support for ewc/xDai in this method, do you have those addresses for adding them?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For xDai I don't think we have it yet.
For EWC and Volta I think it should be the ETHBaseRegister ones:
https://energyweb.atlassian.net/wiki/spaces/EWF/pages/555745281/Using+ENS

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking on adding the addresses on the config file what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I prefer the approach I took in https://github.com/gnosis/safe-react/blob/1587-ens-mislabeled-as-eth/src/logic/collectibles/utils/index.ts#L16-L19

It's so specific that populating the config files with that info will make them unnecessary complex in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, will do that 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added ens addresses for both volta and ewc too 👍

@ghost
Copy link

ghost commented Nov 13, 2020

Travis automatic deployment:
https://pr1601--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Nov 13, 2020

Travis automatic deployment:
https://pr1601--safereact.review.gnosisdev.com/rinkeby/app

@francovenica
Copy link
Contributor

@Agupane Agupane merged commit 9f1dc37 into development Nov 16, 2020
@Agupane Agupane deleted the 1587-ens-mislabeled-as-eth branch November 16, 2020 14:20
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENS collectibles tokens being mislabeled as ETH

4 participants