Page MenuHomePhabricator

[lib] introduce getEthAddressForUserInfo helper function
ClosedPublic

Authored by ginsu on Apr 16 2023, 11:52 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Oct 14 2024, 6:51 PM
Unknown Object (File)
Oct 1 2024, 7:11 AM
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 ↗(On Diff #25206)

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

11–20 ↗(On Diff #25206)

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