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)
Mon, Apr 1, 3:21 AM
Unknown Object (File)
Sun, Mar 31, 1:19 PM
Unknown Object (File)
Sun, Mar 31, 1:19 PM
Unknown Object (File)
Sun, Mar 31, 1:17 PM
Unknown Object (File)
Mar 8 2024, 6:48 PM
Unknown Object (File)
Mar 8 2024, 6:48 PM
Unknown Object (File)
Mar 5 2024, 6:33 PM
Unknown Object (File)
Mar 5 2024, 6:32 PM
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