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

Ensure the json contains enough values for schema array type #155

Open
limemloh opened this issue May 31, 2022 · 0 comments
Open

Ensure the json contains enough values for schema array type #155

limemloh opened this issue May 31, 2022 · 0 comments
Labels
[Prio] Low Should be fixed if time permits but can be postponed. [Type] Bug Something isn't working

Comments

@limemloh
Copy link
Contributor

limemloh commented May 31, 2022

When updating a smart contract using a json parameter, it is possible to send a transaction with json,
where a field of schema type array (fixed length) with fewer elements then the fixed size.

It is expected to fail early in this case.

Say the schema contains an array of 8 bytes

Array(8, U8)

providing json array with fewer elements should fail, such as

[10]

┆Issue is synchronized with this Jira Bug by Unito

@limemloh limemloh added the [Type] Bug Something isn't working label May 31, 2022
@abizjak abizjak added the [Prio] Low Should be fixed if time permits but can be postponed. label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Prio] Low Should be fixed if time permits but can be postponed. [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants