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: proper cross product check for app put and del #5467

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Jun 14, 2023

Test: construct app that tries to modify a local state for which it only has access to the account, not the local state

Copy link
Contributor

@ahangsu ahangsu left a comment

Choose a reason for hiding this comment

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

mostly reasonable move, just up jason's find.

data/transactions/logic/resources_test.go Outdated Show resolved Hide resolved
data/transactions/logic/resources_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #5467 (573d0e4) into master (8ab4aad) will decrease coverage by 5.84%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5467      +/-   ##
==========================================
- Coverage   55.63%   49.80%   -5.84%     
==========================================
  Files         447      447              
  Lines       63405    63409       +4     
==========================================
- Hits        35274    31578    -3696     
- Misses      25751    29408    +3657     
- Partials     2380     2423      +43     
Impacted Files Coverage Δ
data/transactions/logic/eval.go 84.87% <100.00%> (-7.38%) ⬇️

... and 184 files with indirect coverage changes

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

bbroder-algo
bbroder-algo previously approved these changes Jun 14, 2023
Copy link
Contributor

@bbroder-algo bbroder-algo left a comment

Choose a reason for hiding this comment

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

This patch is repairing an oversight in group resource sharing which incorrectly made available to an application its own app local data for a different sender address (used in a different transaction in the group). While that different sender address is "available" under the new resource sharing rules, it should not imply that local data for all applications are available to read/write in that address. To enable read/write, the other address must be available in the foreign array of the same top-level transaction as the app call.

ahangsu
ahangsu previously approved these changes Jun 14, 2023
Copy link
Contributor

@ahangsu ahangsu left a comment

Choose a reason for hiding this comment

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

only one minor thing, but I think it should be good.

data/transactions/logic/resources_test.go Outdated Show resolved Hide resolved
@jannotti jannotti dismissed stale reviews from ahangsu and bbroder-algo via 19a73cc June 14, 2023 14:22
bbroder-algo
bbroder-algo previously approved these changes Jun 14, 2023
ahangsu
ahangsu previously approved these changes Jun 14, 2023
@jannotti jannotti dismissed stale reviews from ahangsu and bbroder-algo via 1f4862b June 14, 2023 14:55
Copy link
Member

@jasonpaulos jasonpaulos left a comment

Choose a reason for hiding this comment

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

LGTM

@bbroder-algo bbroder-algo merged commit 9a644f6 into algorand:master Jun 14, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants