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

N-05 Asset Audit #1143

Merged
merged 4 commits into from
Sep 15, 2023
Merged

N-05 Asset Audit #1143

merged 4 commits into from
Sep 15, 2023

Conversation

wojciech-turek
Copy link
Member

We are on purpose not following the guideline.
We believe named exports with explicit returns aid code readability.

image

@wojciech-turek wojciech-turek requested a review from a team as a code owner September 5, 2023 12:46
@wojciech-turek wojciech-turek requested review from mvanmeerbeck and atkinsonholly and removed request for a team September 5, 2023 12:46
{
return ERC1155URIStorageUpgradeable.uri(tokenId);
}

function getTokenIdByMetadataHash(string memory metadataHash) public view returns (uint256) {
function getTokenIdByMetadataHash(string memory metadataHash) public view returns (uint256 tokenId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The name return variable should also be updated in IAsset.sol for this function.

Copy link
Member Author

Choose a reason for hiding this comment

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

Very true, thanks!

@rishabh0x00
Copy link
Contributor

The changes requested in N-05 is also applicable to the supportsInterface function in Asset.sol contract on line 195.

@wojciech-turek wojciech-turek merged commit d3ee638 into asset-l2-integration Sep 15, 2023
5 checks passed
@mvanmeerbeck mvanmeerbeck deleted the asset-audit-n-05 branch December 19, 2023 15:56
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