ink icon indicating copy to clipboard operation
ink copied to clipboard

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

Open ramirez7358 opened this issue 2 years ago • 0 comments

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.

ramirez7358 avatar Oct 30 '23 11:10 ramirez7358