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

Fix: Automatically use unicode syntax for token names with non-ASCII characters #476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MKVEERENDRA
Copy link

Fix: Use unicode string literal for token names with non-ASCII characters (#475)

  • Token names with accents/symbols (e.g., "MyTokeć") now use Solidity’s unicode"..." syntax to prevent compilation errors.
  • Double quotes in names/symbols are escaped (\") to avoid syntax issues.
  • Developers can now use any Unicode name without manual code adjustments.

Fixes #475

Fix: Use unicode string literal for token names with non-ASCII characters (OpenZeppelin#475)

- Token names with accents/symbols (e.g., "MyTokeć") now use Solidity’s `unicode"..."` syntax  
  to prevent compilation errors.
- Double quotes in names/symbols are escaped (`\"`) to avoid syntax issues.
- Developers can now use any Unicode name without manual code adjustments.

Fixes OpenZeppelin#475
@MKVEERENDRA MKVEERENDRA changed the title Update erc20.ts Fix: Automatically use unicode syntax for token names with non-ASCII characters Mar 5, 2025
@ericglau ericglau requested a review from CoveMB March 5, 2025 18:59
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.

Solidity: If a dev passes a unicode string as token name, unicode"..." string literal should be used
1 participant