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: Expose global fields to TEAL that return MBR for asset create/optin #5680

Merged
merged 2 commits into from Aug 18, 2023

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Aug 17, 2023

They are actually returning the same internal constant, but this will allow people to write "future proof" smart contracts that care about the mbr increment for creating or opting into assets.

Extended the "usual" tests for new fields to make sure they only appear in v10 and not before.

They are actually returning the same internal constant, but this will
allow people to write "future proof" smart contracts that care about
the mbr incremenet for creating or opting into assets.
@jannotti jannotti changed the title Expose global fields to TEAL that return MBR for asset create/optin AVM: Expose global fields to TEAL that return MBR for asset create/optin Aug 17, 2023
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #5680 (c3159bf) into master (c5e779e) will increase coverage by 0.01%.
Report is 5 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5680      +/-   ##
==========================================
+ Coverage   55.16%   55.17%   +0.01%     
==========================================
  Files         465      465              
  Lines       64971    64975       +4     
==========================================
+ Hits        35840    35849       +9     
  Misses      26734    26734              
+ Partials     2397     2392       -5     
Files Changed Coverage Δ
data/transactions/logic/fields.go 75.50% <ø> (ø)
data/transactions/logic/fields_string.go 58.33% <ø> (ø)
data/transactions/logic/eval.go 92.05% <100.00%> (+<0.01%) ⬆️

... and 8 files with indirect coverage changes

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

@jannotti jannotti marked this pull request as ready for review August 18, 2023 17:13
ahangsu
ahangsu previously approved these changes Aug 18, 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.

seems good, tests are passing, and it seems to be benefiting a few testcases in simulation side

@jannotti jannotti merged commit 620e9bd into algorand:master Aug 18, 2023
19 checks passed
bbroder-algo pushed a commit to bbroder-algo/go-algorand that referenced this pull request Aug 19, 2023
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

3 participants