Solidity: If a dev passes a unicode string as token name, unicode"..."
string literal should be used
#475
Labels
unicode"..."
string literal should be used
#475
Currently passing Unicode strings as token names is supported in Wizard, but it produces invalid Solidity code.
For example, if we open Wizard Solidity and in the "Name" field we type
MyTokeć
, this will be the output:But this is not valid Solidity code as string literals must be ASCII characters, so the compiler will throw an error. To make this compile, the string literal must be prepended with the
unicode
keyword:The text was updated successfully, but these errors were encountered: