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

Validate length of text input for storage considerations. #2

Open
streamerd opened this issue Jul 31, 2022 · 0 comments
Open

Validate length of text input for storage considerations. #2

streamerd opened this issue Jul 31, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@streamerd
Copy link
Member

streamerd commented Jul 31, 2022

Start with improving textual expressions' size checks.

Both on front-end and backend, add an input control mechanism, where received _expression input can not exceed a string field's size on solidity. (so should reflect front-end, UTF-8 or ASCII encoded).

Some guides:

Solidity
https://docs.soliditylang.org/en/v0.8.14/internals/layout_in_storage.html#bytes-and-string
https://medium.com/hackernoon/working-with-strings-in-solidity-c4ff6d5f8008

React:
https://bobbyhadz.com/blog/react-input-character-limit

@streamerd streamerd changed the title Validate input lenfth of text input for storage considerations. Validate lenfth of text input for storage considerations. Jul 31, 2022
@streamerd streamerd changed the title Validate lenfth of text input for storage considerations. Validate length of text input for storage considerations. Jul 31, 2022
@streamerd streamerd moved this to 📋 Backlog in Expressions of Peace Aug 13, 2022
@streamerd streamerd added enhancement New feature or request help wanted Extra attention is needed labels Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant