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

Emulate access to custom account instance and Wasm in recording auth. #1476

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Oct 18, 2024

What

Emulate access to custom account instance and Wasm in recording auth.

The change gracefully handles failures (e.g. allows for the instance not being present) in order to not spam diagnostics in unit tests that don't care about the footprint (which makes up for majority of the unit tests).

Why

Better emulate the authorization behavior (in some edge cases this might allow for single-pass simulation of custom accounts).

Resolves #1443

Known limitations

In theory, we could also try calling __check_auth on the contract (if possible), but that will likely produce confusing diagnostics for most of the contracts (e.g. signature verification errors).

The change gracefully handles failures (e.g. allows for the instance not being present) in order to not spam diagnostics in unit tests that don't care about the footprint (which makes up for majority of the unit tests).

In theory, we could also try calling `__check_auth` on the contract (if possible), but that will likely produce confusing diagnostics for most of the contracts (e.g. signature verification errors).
@dmkozh dmkozh added this pull request to the merge queue Nov 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 4, 2024
@dmkozh dmkozh added this pull request to the merge queue Nov 5, 2024
Merged via the queue into stellar:main with commit 61831e8 Nov 5, 2024
12 checks passed
@dmkozh dmkozh deleted the instance_sim branch November 5, 2024 18:17
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.

Include __check_auth contract instance in footprint when recording
2 participants