update
update
Usage: update [alias-or-address] --network <network> [options]
update contract to a new logic. Provide the [alias] or [package]/[alias] you added your contract with, its [address], or use --all flag to update all contracts in your project.
- Options:
--init [function]
call function after upgrading contract. If no name is given, 'initialize' will be used--args <arg1, arg2, ...>
provide initialization arguments for your contract if required--all
update all contracts in the application--force
force creation even if contracts have local modifications-n, --network <network>
network to be used-f, --from <from>
specify transaction sender address--timeout <timeout>
timeout in seconds for each blockchain transaction (defaults to 600s)