upgrade
upgrade
Usage: upgrade [alias-or-address] --network <network> [options]
upgrade contract to a new logic. Provide the [alias] or [package]/[alias] you added your contract with, its [address], or use --all flag to upgrade 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
upgrade 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)--skip-compile
skips contract compilation--no-interactive
force to run the command in non-interactive mode