release-notes-v18
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
⭐ Features
Resolve Contract Imports in Scripts and Transactions
This is a new feature that allows you to send transactions and scripts that reference
contracts deployed using the project deploy
command. Imports are resolved
by matching contract source paths to their declarations in flow.json
.
For example:
Example script: get_supply.cdc
Example command:
Note: Please make sure you first deploy the contract using flow project deploy
command and that contracts are correctly added to the flow configuration.
Build, Sign and Send Transactions
New functionality allows you to build a transaction, sign it and send signed to the network in separated steps.
Build Transaction
Build new transaction and specify who will be the proposer, signer and payer account or address. Example:
Check more about this functionality in docs.
Sign Transaction
After using build command and saving payload to a file you should sign the transaction with each account. Example:
Send Signed Transaction
When authorizer, payer and proposer sign the transaction it is ready to be
sent to the network. Anyone can execute the send-signed
command. Example:
Version Check
Automatically checks if a new version exists and outputs a warning in case there is a newer version. Example:
Create Account With Multiple Keys and Weights
Account creation can be done using multiple keys (--key
) and new --key-weight
flag. Flag enables you to set key weight for each of the keys. Command example:
🎉 Improvements
Account Response Improved
Account response includes two new fields in key section: Sequence Number
and Index
.
Transaction Result Improved
Transaction result displays more information about the transaction. New format example:
Transaction error is now shown at the top of the result.
🐞 Bug Fixes
New Transaction ID Log
While sending transaction was in progress output displayed wrong transaction ID.
Init Reset Fix
Old configuration format caused an error saying to reset the configuration using reset flag, but when ran it produced the same error again. This bug was fixed.
Emulator Config Path
When running emulator command flow emulator
config flag -f
was ignored.
This has been fixed, so you can provide a custom path to the config while running
the start emulator command.