Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve ENS addresses upon submission #114

Closed
wants to merge 3 commits into from

Conversation

corydickson
Copy link

@corydickson corydickson commented Mar 31, 2020

Addresses: #90

The approach laid out here uses the existing submission endpoint to resolve an ENS address. I went this way to avoid bringing in another web3 instance into the project, despite some of the comments in the issue indicating the ability to provide some tooltip or notification of bad user input

Let me know if that would be preferred and we can also sanitize for regular bytecode addresses

View in Huly HI-879

files: string[]
) : Promise<string[]> {

if (address) {
if (isENS) {
Copy link
Author

Choose a reason for hiding this comment

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

Another way this could be achieved is keeping the assumption the input is not sanitized and match domains here, not sure if we should be accepting subdomains...

@cgewecke cgewecke self-assigned this Apr 13, 2020
@corydickson
Copy link
Author

After doing some digging not sure if this will work for all of the supported chainIds, is it acceptable to limit it to mainnet, rinkeby, ropsten

@corydickson
Copy link
Author

We can add a corresponding prompt for the user as well

@edisinovcic
Copy link
Contributor

@corydickson that's definitely a good start. Not sure if the prompt is needed as we already get the network (chain) so we can just check in isEns is one of the listed networks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants