Page MenuHomePhabricator

[lib] introduce getEthAddressForUserInfo helper function
ClosedPublic

Authored by ginsu on Apr 16 2023, 11:52 PM.
Tags
None
Referenced Files
F3505090: D7461.id25206.diff
Fri, Dec 20, 12:08 PM
F3504291: D7461.diff
Fri, Dec 20, 8:20 AM
Unknown Object (File)
Wed, Dec 18, 3:18 AM
Unknown Object (File)
Oct 31 2024, 9:14 PM
Unknown Object (File)
Oct 31 2024, 9:14 PM
Unknown Object (File)
Oct 31 2024, 9:14 PM
Unknown Object (File)
Oct 31 2024, 9:13 PM
Unknown Object (File)
Oct 31 2024, 9:03 PM
Subscribers

Details

Summary

As I was attempting to introduce the use ens avatar option into EditAvatar I found that I needed the ethAddress again so I created this small helper function to reduce redundancy with this logic

Depends on D7460

Test Plan

flow and everything behaves as expected

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Please address inline comments before landing!

lib/utils/ens-helpers.js
11

Let's capitalize it this way for consistency with userIdentifiedByETHAddress etc.

11–20

I think it makes more sense to put this in the same file as userIdentifiedByETHAddress

This revision is now accepted and ready to land.Apr 17 2023, 5:00 AM

address ashoat's comments