Skip to content

v0.21.0

Compare
Choose a tag to compare
@digorithm digorithm released this 29 Aug 17:29
· 510 commits to master since this release
19c337a

What's Changed

Full Changelog: v0.20.0...v0.21.0

Breaking changes

Disabled some functionalities to unblock other projects

As per #546:

if contracts are using either of these:

mint_to_address(amount_to_mint, recipient);
transfer_to_output(amount_to_transfer, ~ContractId::from(BASE_TOKEN), recipient);
msg_sender();

The SDK will not work properly.

These will work again in the subsequent release after the Sway/stdlib work is done to unblock this.

Wallet is now Wallet and WalletUnlocked

Wallets are now read-only and don't require a private key. If you want to alter the chain state (e.g., by signing a transaction), you'll need to pass a private key to Wallet's new unlock() method. This helps with security matters by reducing the scope of the default wallet. Read more here: #540.

New features

New JSON ABI format support

We're slowly migrating to a new JSON ABI file format, one that's flat-based instead of recursion-based. This will enable us to better support generics.

This release adds support for this new JSON ABI file format. However, we still support both file formats. If you want to try the new one, use the flat one outputted by the compiler.

Within the next weeks, we will drop the support for the old one.