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

Preserve existing auth entries after simulation if they're present #114

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Jul 26, 2023

In complex auth scenarios, you may have signed entries that would be overwritten by simulation, so this just uses your existing entries. This should not affect "new" or "fresh" simulations just like before.

Copy link

@aristidesstaffieri aristidesstaffieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

xdr.SorobanAuthorizationEntry.fromXDR(a, "base64")
) ?? []
),
// if auth entries are already present, we consider this "advanced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion, this is really good description on the new behavior for auth based on incoming tx, which could be included in public facing js doc on prepareTransaction()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea! done in 12973ee

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.

3 participants