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

Pashov L-06 limit symbol length #376

Merged
merged 7 commits into from
Oct 29, 2024
Merged

Pashov L-06 limit symbol length #376

merged 7 commits into from
Oct 29, 2024

Conversation

dianakocsis
Copy link
Contributor

Related Issue

Pashov L-06 https://github.com/PashovAuditGroup/Uniswap_October_MERGED/issues/10
Long symbol strings can cause tokenURI to revert or artifacts in the SVG image

Description of changes

limit symbol length

@@ -92,4 +97,16 @@ library SafeCurrencyMetadata {
}
return "";
}

/// @notice truncates the symbol to the MAX_SYMBOL_LENGTH
/// @param str the symbol
Copy link
Contributor

Choose a reason for hiding this comment

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

would be great to have 1 little
@dev assumes the string is already longer than MAX_SYMBOL_LENGTH

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice

@dianakocsis dianakocsis merged commit 126cca6 into main Oct 29, 2024
3 checks passed
@dianakocsis dianakocsis deleted the pashov-l06 branch October 29, 2024 21:08
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.

2 participants