github onflow/cadence v0.4.0

latest releases: v1.2.2, v1.0.2, v1.2.1...
4 years ago

💥 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

Don't miss a new cadence release

NewReleases is sending notifications on new releases.