Commit 6261a1af authored by lilinleeli1234's avatar lilinleeli1234 Committed by vipwzw

input check

parent 6c79e18e
......@@ -227,6 +227,11 @@ func createContract(cmd *cobra.Command, args []string) {
feeInt64 := uint64(fee*1e4) * 1e4
if !strings.EqualFold(sol, "") && !strings.EqualFold(code,"") && !strings.EqualFold(abi,"" ) {
fmt.Fprintln(os.Stderr, "--sol, --code and --abi shouldn't be used at the same time.")
return
}
var action evmtypes.EVMContractAction
if !strings.EqualFold(sol, "") {
if _, err := os.Stat(sol); os.IsNotExist(err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment