Skip to content

Store commitments under a prefixed store #3923

@benluelo

Description

@benluelo

this function:

fn store_commit(deps: DepsMut, key: &H256, value: &H256) -> Result<(), ContractError> {
deps.storage.set(key.as_ref(), value.as_ref());
Ok(())
}

should use a prefixed store, and not commit directly at the root of the contract. this will allow for more easily iterating the store, and remove any potential collisions with other storages in the contract.

this should probably be implemented as part of the migration to depolama (#3919)

Metadata

Metadata

Labels

A-ibc-unionArea: ibc-unionC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions