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

AVM: Make apps and app accounts available while creation is "pending" #5425

Merged
merged 2 commits into from May 30, 2023

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented May 30, 2023

Starting in the same consensus version that allows resource sharing, this PR makes apps and app accounts of "pending" app creates available while their inners are executing.

This was the intent all along, but the new app was only added to cx.createdApps at the conclusion of its execution, rather than at the start.

Test Plan

Existing tests, plus some new ones that test that that holdings of the app account, and globals are accessible in inners of the create.

Starting in the same consensus version that allows resource sharing,
this PR makes apps and app accounts of "pending" app creates available
while their inners are executing.

This was the intent all along, the new app was only added to
`cx.createdApps` at the conclusion of its execution, rather than at
the start.
@jannotti jannotti changed the title Make apps and app accounts available while creation is "pending" AVM: Make apps and app accounts available while creation is "pending" May 30, 2023
@jannotti jannotti requested a review from jasonpaulos May 30, 2023 14:23
@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #5425 (3e26869) into master (6ad660f) will increase coverage by 0.00%.
The diff coverage is 96.66%.

@@           Coverage Diff           @@
##           master    #5425   +/-   ##
=======================================
  Coverage   55.37%   55.37%           
=======================================
  Files         447      447           
  Lines       63226    63233    +7     
=======================================
+ Hits        35011    35018    +7     
+ Misses      25823    25819    -4     
- Partials     2392     2396    +4     
Impacted Files Coverage Δ
data/transactions/logic/resources.go 84.09% <90.90%> (+1.13%) ⬆️
data/transactions/logic/eval.go 91.29% <100.00%> (+0.01%) ⬆️

... and 9 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

algorandskiy
algorandskiy previously approved these changes May 30, 2023
@jannotti jannotti merged commit aa6a5bb into algorand:master May 30, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants