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

The function set_contract_storage in integration test it's missing a size check. #1960

Open
ramirez7358 opened this issue Oct 30, 2023 · 0 comments · May be fixed by #1961
Open

The function set_contract_storage in integration test it's missing a size check. #1960

ramirez7358 opened this issue Oct 30, 2023 · 0 comments · May be fixed by #1961

Comments

@ramirez7358
Copy link

ramirez7358 commented Oct 30, 2023

Describe the bug
The function set_contract_storage() sets the storage in a contract. There was a missing validation in integration tests that was present in e2e. This validation checked that the size of the storage set did not exceed 16380 bytes.

pub fn set_contract_storage<K, V>(key: &K, value: &V) -> Option<u32>

Expected behavior
In case this limit is exceeded, a panic is raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant