Commit 5962bfe3 authored by lilinleeli1234's avatar lilinleeli1234 Committed by vipwzw

update linter

parent bef7fa06
...@@ -238,7 +238,7 @@ func createContract(cmd *cobra.Command, args []string) { ...@@ -238,7 +238,7 @@ func createContract(cmd *cobra.Command, args []string) {
if _, err := os.Stat(sol); os.IsNotExist(err) { if _, err := os.Stat(sol); os.IsNotExist(err) {
fmt.Fprintln(os.Stderr, "Sol file is not exist.") fmt.Fprintln(os.Stderr, "Sol file is not exist.")
return return
} else { }
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)
...@@ -259,7 +259,6 @@ func createContract(cmd *cobra.Command, args []string) { ...@@ -259,7 +259,6 @@ func createContract(cmd *cobra.Command, args []string) {
} }
action = evmtypes.EVMContractAction{Amount: 0, Code: bCode, GasLimit: 0, GasPrice: 0, Note: note, Alias: alias, Abi: string(abi)} action = evmtypes.EVMContractAction{Amount: 0, Code: bCode, GasLimit: 0, GasPrice: 0, Note: note, Alias: alias, Abi: string(abi)}
} }
}
} else { } else {
bCode, err := common.FromHex(code) bCode, err := common.FromHex(code)
if err != nil { if err != nil {
......
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