-
Notifications
You must be signed in to change notification settings - Fork 896
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
Add ENS support #8125
Add ENS support #8125
Conversation
3901583
to
55a4d12
Compare
a72dfcb
to
49230e2
Compare
<settings-dropdown-menu id="ensResolveMethodType" | ||
pref="{{prefs.brave.ens.resolve_method}}" | ||
menu-options="[[ensResolveMethod_]]"> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a separate PR perhaps, but I wonder if these should go under the wallet settings. As it is now it's in the extensions settings which doesn't seem right. I know it's not really wallet, but it's along the same lines for people that care about these options. @jamesmudgett thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (base::EndsWith(host, unstoppable_domains::kCryptoDomain)) { | ||
*suffix_length = strlen(unstoppable_domains::kCryptoDomain) - 1; | ||
if (base::EndsWith(host, decentralized_dns::kCryptoDomain)) { | ||
*suffix_length = strlen(decentralized_dns::kCryptoDomain) - 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I know it's not from this PR, but at some point it would be good to rename this to kUnstoppableDomain because crypto is overloaded enough already :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I felt kCryptoDomain is more straightforward for “.crypto” than kUnstoppableDomain, so I'll keep it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK np here :)
49230e2
to
513c102
Compare
Resolves brave/brave-browser#14477
First two commits are just renaming things & formatting after that.
Main commit for adding ENS support is c24b31e.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Same as #7702, just change brave.crypto to brantly.eth.