mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-10 06:38:05 -05:00
misc: Date display type added for 'minted at' NFT trait
This commit is contained in:
@@ -32,11 +32,11 @@ contract FollowTokenURI is IFollowTokenURI {
|
||||
followedProfileIdAsString,
|
||||
'","image":"data:image/svg+xml;base64,',
|
||||
Base64.encode(bytes(FollowSVG.getFollowSVG(followTokenId))),
|
||||
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
|
||||
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
|
||||
followTokenIdAsString,
|
||||
'"},{"trait_type":"DIGITS","value":"',
|
||||
bytes(followTokenIdAsString).length.toString(),
|
||||
'"},{"trait_type":"MINTED AT","value":"',
|
||||
'"},{"display_type":"date","trait_type":"MINTED AT","value":"',
|
||||
originalFollowTimestamp.toString(),
|
||||
'"}]}'
|
||||
)
|
||||
|
||||
@@ -27,7 +27,7 @@ contract HandleTokenURI is IHandleTokenURI {
|
||||
localName,
|
||||
'","image":"data:image/svg+xml;base64,',
|
||||
Base64.encode(bytes(HandleSVG.getHandleSVG(localName))),
|
||||
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
|
||||
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
|
||||
tokenId.toString(),
|
||||
'"},{"trait_type":"NAMESPACE","value":"',
|
||||
namespace,
|
||||
|
||||
@@ -25,13 +25,13 @@ contract ProfileTokenURI is IProfileTokenURI {
|
||||
profileIdAsString,
|
||||
'","image":"data:image/svg+xml;base64,',
|
||||
Base64.encode(bytes(ProfileSVG.getProfileSVG(profileId))),
|
||||
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
|
||||
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
|
||||
profileIdAsString,
|
||||
'"},{"trait_type":"HEX ID","value":"',
|
||||
profileId.toHexString(),
|
||||
'"},{"trait_type":"DIGITS","value":"',
|
||||
bytes(profileIdAsString).length.toString(),
|
||||
'"},{"trait_type":"MINTED AT","value":"',
|
||||
'"},{"display_type":"date","trait_type":"MINTED AT","value":"',
|
||||
mintTimestamp.toString(),
|
||||
'"}]}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user