v0.21.0
What's Changed
- Fix error handling in doctest by @digorithm in #522
- refactor: generate wallets with deterministic keys by @hal3e in #517
- fix: update Victor's github username in CODEOWNERS by @segfault-magnet in #526
- Document setup coins by @MujkicA in #524
- fix: remove spam from
fuel-core
when running tests by @iqdecay in #531 - feat: add transaction cost estimation by @hal3e in #527
- feat: add predicate support baseline with tests by @camsjams in #432
- fix: script tx input validation bug by @segfault-magnet in #529
- Cookbook examples by @MujkicA in #523
- feat!: add support to the new flat JSON ABI format by @digorithm in #533
- Distinguish between a
Wallet
'sLocked
andUnlocked
states by @mitchmindtree in #540 - feat: add predicate example and docs by @hal3e in #541
- feat!: bump fuel core to 0.10.1 by @hal3e in #546
- Bump versions to 0.21.0 by @digorithm in #549
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
Wallet
s 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.