Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFTDescriptor for WithdrawalQueueERC721 #646

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

ujenjt
Copy link
Member

@ujenjt ujenjt commented Feb 21, 2023

add NFTDescriptor as an on-chain way of generating metadata for WithdrawalQueueERC721

Copy link
Member

@folkyatina folkyatina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine for me. Docs can use some editing though.

import {UnstructuredStorage} from "./lib/UnstructuredStorage.sol";

/**
* @title Interface defining INFTDescriptor to generate ERC721 metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking alert. Actually it provides only tokenURI, because ERC721 metadata includes name and symbol as well.

@@ -90,11 +105,18 @@ contract WithdrawalQueueERC721 is IERC721Metadata, WithdrawalQueue {
}

/// @dev See {IERC721Metadata-tokenURI}.
/// @dev If NFTDescriptor address isn't set the `baseURI` would be used for generating erc721 metadata. In case
/// NFTDescriptor address is set it would be used as a priority method.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a first-priority method ?

Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheDZhon TheDZhon merged commit 896aa7d into feature/shapella-upgrade-followups Feb 21, 2023
@TheDZhon TheDZhon mentioned this pull request Feb 21, 2023
26 tasks
@TheDZhon TheDZhon deleted the feature/nft-descriptor branch February 21, 2023 14:52
@ujenjt ujenjt restored the feature/nft-descriptor branch February 21, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants