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

Added validator class for NEP-17 contract #311

Closed
wants to merge 20 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/neoxp/Validators/TokenBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public bool IsValidSymbol()
for (int i = 0; i < symbol.Length; i++)
{
var letter = symbol[i];
if ((letter >= 'A' && letter <= 'Z') == false)
if (char.IsWhiteSpace(letter) || char.IsControl(letter) ||
char.IsAscii(letter) == false)
return false;
}

cschuchardt88 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down