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

fix: init_v2 BTreeMap::new #117

Merged
merged 1 commit into from
Aug 28, 2023
Merged

fix: init_v2 BTreeMap::new #117

merged 1 commit into from
Aug 28, 2023

Conversation

peterpeterparker
Copy link
Member

Hi @ielashi,

I'm not sure but, is it possible that the init of a new BTreeMap::new in init_v2 is incorrect in your PR and should be replaced with BTreeMap::new_v2?

At least, while testing your PR, I was facing following error which seems to be resolved by tweaking those.

2023-08-26 14:42:36.677876 UTC: [Canister by6od-j4aaa-aaaaa-qaadq-cai] Panicked at 'Cannot get max size of unbounded type.', /Users/daviddalbusco/.cargo/git/checkouts/stable-structures-10185dfe005f3b12/8620b4f/src/storable.rs:450:9

@ielashi
Copy link
Contributor

ielashi commented Aug 28, 2023

Good catch, thanks!

@ielashi ielashi merged commit 9fd6532 into dfinity:ielashi/btree_v2 Aug 28, 2023
3 checks passed
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.

2 participants