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)
Feb 27 2024, 2:59 PM
Unknown Object (File)
Feb 27 2024, 2:59 PM
Unknown Object (File)
Feb 27 2024, 2:59 PM
Unknown Object (File)
Feb 27 2024, 2:58 PM
Unknown Object (File)
Feb 27 2024, 2:48 PM
Unknown Object (File)
Feb 27 2024, 11:31 AM
Unknown Object (File)
Jan 31 2024, 9:01 AM
Unknown Object (File)
Dec 16 2023, 4:56 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
Lint Not Applicable
Unit
Tests Not Applicable

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