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

Implement try_append for StorageNMap #5745

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

CJ13th
Copy link

@CJ13th CJ13th commented Sep 18, 2024

Description

Closes #5722

Added an implementation of the try_append functionality which is present on the other storage map types but currently missing from StorageNMap.

@CJ13th CJ13th requested a review from a team as a code owner September 18, 2024 01:16
@rainbow-promise
Copy link

LGTM

assert_ok!(FooQuadMap::try_append((2, 1, 1, 1), 5));
assert_eq!(
FooQuadMap::get((2, 1, 1, 1)).unwrap(),
BoundedVec::<u32, ConstU32<7>>::try_from(vec![4, 5]).unwrap(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

API fn try_append is missing for StorageNMap
3 participants