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

Restore previous auth state in client #1174

Merged
merged 11 commits into from
Nov 22, 2023
Merged

Restore previous auth state in client #1174

merged 11 commits into from
Nov 22, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 21, 2023

What

Restore previous auth state in client after client finishes invoke.

Why

The client is presented in such a way that it looks like invocations with a client that has been configured with certain auth will apply the auth only during invocations with it.

It's unintuitive that the auths from the client apply forever after the invocation.

Close #1084

Dependent on:

@leighmcculloch leighmcculloch marked this pull request as ready for review November 21, 2023 21:51
soroban-sdk/src/env.rs Show resolved Hide resolved
@leighmcculloch
Copy link
Member Author

This change at commit 49d1ba0 worked, but there were some edge cases where technically a developer could end up in a odd place by instantiating an Env, that would think it is outside a contract when it was inside. So I've opened the following change on env and updated this change to use it:

@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 22, 2023
Merged via the queue into main with commit 8c5eba9 Nov 22, 2023
@leighmcculloch leighmcculloch deleted the i1084 branch November 22, 2023 21:22
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.

Restore previous auth state after client modifies it
2 participants