💥 Breaking Changes
- The
AuthAccount
constructor now requires apayer
parameter, from which the account creation fee is deducted. ThepublicKeys
andcode
parameters were removed.
⭐ Features
-
Added the function
unsafeNotInitializingSetCode
toAuthAccount
which, likesetCode
, updates the account's code but does not create a new contract object or invoke its initializer. This function can be used to upgrade account code without overwriting the existing stored contract object.⚠️ This is potentially unsafe because no data migration is performed. For example, changing a field's type results in undefined behaviour (i.e. could lead to the execution being aborted).
🐞 Bug Fixes
- Fixed variable shadowing for-in identifier to shadow outer scope (#72)
- Fixed order of declaring conformances and usages
- Fixed detection of resource losses in invocation of optional chaining result