-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add support for resource-kinded fields in transaction roles #2262
Add support for resource-kinded fields in transaction roles #2262
Conversation
@@ -1366,32 +1366,13 @@ func (checker *Checker) recordResourceInvalidation( | |||
) | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return memberInfo.Member | ||
} | ||
|
||
return checker.accessedSelfMember(expression) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default, like in https://github.com/onflow/cadence/pull/2262/files#diff-c34bee2125d8f3673160cc7b3c912540ad811b4622a66c3a2ed6c25fc94e1cb0R176 (jump is broken, need to scroll up a bit)
2b6f834
to
8a95517
Compare
@SupunS pushed some more tests and improvements, could you please have a final look? Thank you! |
…ded-transaction-format-4
Codecov Report
@@ Coverage Diff @@
## feature/extended-transaction-format #2262 +/- ##
====================================================================
Coverage 77.79% 77.80%
====================================================================
Files 309 309
Lines 66164 66189 +25
====================================================================
+ Hits 51474 51499 +25
Misses 12906 12906
Partials 1784 1784
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/extended-transaction-format commit dc837ee Collapsed results for better readability
|
Work towards #2177
Description
Transaction roles may have resource-kinded fields.
Add dedicated support for allowing resource-kinded fields to get invalidated in a transaction's execute block, even though such invalidations are nested, which are not allowed in other contexts (composite destructors).
master
branchFiles changed
in the Github PR explorer