1

Maybe stupid question, but just want to be sure before deploying contract on main net. In my contract user can change his name(:string) to whatever he likes. Is it totally safe? I mean, is here some chance of 'overflow' string, change any other variables through that or something similar as SQL Injection? Thanks.

0

As far as I know you can't really 'overflow' it or anything similar. You can find a lot more information here: Use string type or bytes32?

What your users can do is assign a very long string and if your contract uses the string for something it will cost a lot of gas to process. So consider limiting the length (by using bytes).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.