From fac2a0d7e355311dfb9c81caaefe29e3f51d1bcc Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 27 Jan 2021 21:39:14 +0300 Subject: [PATCH] cli: provide -m flag for manifest when deploying a contract It's a bit easier to use. Previously we couldn't have it because it was used for '--mainnet', but we no longer specify the network, so it can be used for '--manifest'. --- cli/smartcontract/smart_contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index a8d87a1d7..b01f5a31c 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -38,7 +38,7 @@ import ( var ( errNoInput = errors.New("no input file was found, specify an input file with the '--in or -i' flag") errNoConfFile = errors.New("no config file was found, specify a config file with the '--config' or '-c' flag") - errNoManifestFile = errors.New("no manifest file was found, specify a manifest file with the '--manifest' flag") + errNoManifestFile = errors.New("no manifest file was found, specify manifest file with '--manifest' or '-m' flag") errNoMethod = errors.New("no method specified for function invocation command") errNoWallet = errors.New("no wallet parameter found, specify it with the '--wallet or -w' flag") errNoScriptHash = errors.New("no smart contract hash was provided, specify one as the first argument") @@ -107,7 +107,7 @@ func NewCommands() []cli.Command { Usage: "Input file for the smart contract (*.nef)", }, cli.StringFlag{ - Name: "manifest", + Name: "manifest, m", Usage: "Manifest input file (*.manifest.json)", }, walletFlag,