Resource Owner
Resources have the implicit field let owner: PublicAccount?
. If the resource is currently stored in an account, then the field contains the publicly accessible portion of the account. Otherwise the field is nil
The field's value changes when the resource is moved from outside account storage into account storage, when it is moved from the storage of one account to the storage of another account, and when it is moved out of account storage.
Last updated