Skip to content

Commit

Permalink
Add note about migration changes to entitlements migration (#252)
Browse files Browse the repository at this point in the history
add note about migration changes
  • Loading branch information
dsainati1 authored Mar 6, 2024
1 parent ca7fd6a commit a68357c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cadence/20230601-entitlements-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The challenge here is that it is not possible to determine what entitlements the

## Proposed Solution

NB: this solution has since been updated and iterated upon slightly to address issues that came up during its implementation. See https://cadence-lang.org/docs/cadence_migration_guide/type-annotations-guide for more details.

### `Entitlements(T)`

The first part of this solution involves the definition of an informal “function” on types, called `Entitlements`. For some type `T` that exists in pre-Stable Cadence, `Entitlements(T)` expresses the set of entitlements necessary post-Stable Cadence contract update that are necessary to call the same set of members that were previously accessible to a reference typed `&{T}`.
Expand Down

0 comments on commit a68357c

Please sign in to comment.