Skip to content

v0.4.0

Compare
Choose a tag to compare
@turbolent turbolent released this 02 Jun 23:22
· 10615 commits to master since this release

💥 Breaking Changes

  • The AuthAccount constructor now requires a payer parameter, from which the account creation fee is deducted. The publicKeys and code parameters were removed.

⭐ Features

  • Added the function unsafeNotInitializingSetCode to AuthAccount which, like setCode, 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