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

SPrincipal doesn't work when stored in the stable data structures #4

Closed
saikatdas0790 opened this issue Aug 7, 2022 · 1 comment
Closed

Comments

@saikatdas0790
Copy link

saikatdas0790 commented Aug 7, 2022

This is the error I'm seeing

Panicked at 'Unable to decode: Error { kind: UnexpectedEndOfInput }', /home/saikat/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-stable-memory-0.2.2/./src/primitive/s_unsafe_cell.rs:39:58

Here's the minimal reproduction (same repo, updated code):
https://github.com/saikatdas0790/stable_memory_allocator_bug_illustration

Steps to Reproduce error

  • dfx start --clean
  • dfx deploy --no-wallet
  • Open the Candid UI explorer
  • Run one of the query methods. No issues
  • Run the update method to insert SPrincipal into stable collections
  • Run the query method again. Error
  • Try the separate methods for String type which has no issues running

Let me know if you need any further details. Thank you

@seniorjoinu
Copy link
Owner

Hello there!
I've updated the library to a new version (0.2.3) - it now contains a fix for this problem.

Thank you very much for reporting it!
Feel free to reopen if anything goes wrong.

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

No branches or pull requests

2 participants