Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "remove-contract <name>", Short: "Remove a contract deployed to an account", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { projectConf := cli.LoadConfig() contractName := args[0] signerAccount := projectConf.Accounts[conf.Signer] if signerAccount == nil && conf.Signer == "service" { signerAccount = projectConf.Accounts["emulator-account"] } tx := templates.RemoveAccountContract(signerAccount.Address, contractName) cli.SendTransaction( projectConf.HostWithOverride(conf.Host), signerAccount, tx, conf.Results, ) }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.