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

Fetch local state before creating it #7

Open
Lumene98 opened this issue Mar 4, 2021 · 1 comment
Open

Fetch local state before creating it #7

Lumene98 opened this issue Mar 4, 2021 · 1 comment

Comments

@Lumene98
Copy link

Lumene98 commented Mar 4, 2021

Don't you get failed to fetch app local state during creation because of, for example in manager,

read_key_token1 = App.localGet(Int(1), KEY_TOKEN1)
It should fail since the local state hasn't been created yet, how do you prevent it from happening?

@JasonWeathersby
Copy link

if that key does not exist it will return a 0. You could always use localGetEx as well.

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