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

extend_ttl function panics in situations not documented #1329

Open
leighmcculloch opened this issue Sep 9, 2024 · 0 comments
Open

extend_ttl function panics in situations not documented #1329

leighmcculloch opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@leighmcculloch
Copy link
Member

What version are you using?

SDK: v21.6.0
Env: v21.2.0

What did you do?

It was reported that a call to extend_ttl panics when the ledger key doesn't exist:
https://discord.com/channels/897514728459468821/1281892101264769055

What did you expect to see?

Undefined.

What did you see instead?

Panic.

It's not documented in the SDK docs:
https://docs.rs/soroban-sdk/latest/soroban_sdk/storage/struct.Persistent.html#method.extend_ttl

Or in the Env:
https://github.com/stellar/rs-soroban-env/blob/v21.2.1/soroban-env-common/env.json#L1364-L1385

@leighmcculloch leighmcculloch added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@leighmcculloch and others