Commit 6c79e18e authored by lilinleeli1234's avatar lilinleeli1234 Committed by vipwzw

update

parent a5c635b1
...@@ -236,12 +236,12 @@ func createContract(cmd *cobra.Command, args []string) { ...@@ -236,12 +236,12 @@ func createContract(cmd *cobra.Command, args []string) {
contracts, err := compiler.CompileSolidity(solc, sol) contracts, err := compiler.CompileSolidity(solc, sol)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, "Failed to build Solidity contract", err) fmt.Fprintln(os.Stderr, "Failed to build Solidity contract", err)
os.Exit(-1) return
} }
if len(contracts) > 1 { if len(contracts) > 1 {
fmt.Fprintln(os.Stderr, "There are too many contracts in the sol file.") fmt.Fprintln(os.Stderr, "There are too many contracts in the sol file.")
os.Exit(-1) return
} }
for _, contract := range contracts { for _, contract := range contracts {
......
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