Skip to content

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

Open
@ramirez7358

Description

@ramirez7358

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions