Page MenuHomePhabricator

[lib] Add test of ENS avatar set to NFT which is an SVG data URI
ClosedPublic

Authored by ashoat on Mar 11 2023, 4:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 6:05 AM
Unknown Object (File)
Fri, Dec 6, 6:05 AM
Unknown Object (File)
Fri, Dec 6, 6:05 AM
Unknown Object (File)
Fri, Dec 6, 6:05 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:42 AM
Unknown Object (File)
Nov 22 2024, 12:41 AM
Unknown Object (File)
Nov 22 2024, 12:38 AM
Subscribers

Details

Summary

This is a pretty complicated and ethers.js seems to handle it perfectly!

Note that I have some long lines here... with the data URI I don't think it really matters, and with the test declarations I figured they were more readable on one line. Can change either if preferred.

Depends on D7045

Test Plan
  1. Test plan described here, implemented via unit tests in this and preceding diffs
  2. Tested SVGs in React Native as noted here

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

with the data URI I don't think it really matters

Personally think the cleanest approach would be to just move the data URI to its own file, but doesn't really matter

with the test declarations I figured they were more readable on one line

Agree

This revision is now accepted and ready to land.Mar 11 2023, 9:20 PM
.eslintrc.json
22 ↗(On Diff #23640)

I should update the comment too