diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 4cd604e59..be9b1cbd9 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -18,8 +18,8 @@ import ( ) var ( - errNoInput = errors.New("No input file was found, specify an input file with the '--in or -i' flag") - errNoSmartContractName = errors.New("No name was provided, specify the '--name or -n' flag") + errNoInput = errors.New("no input file was found, specify an input file with the '--in or -i' flag") + errNoSmartContractName = errors.New("no name was provided, specify the '--name or -n' flag") errFileExist = errors.New("A file with given smart-contract name already exists") ) diff --git a/pkg/util/fixed8.go b/pkg/util/fixed8.go index 1364a0601..f28f74e45 100644 --- a/pkg/util/fixed8.go +++ b/pkg/util/fixed8.go @@ -12,7 +12,7 @@ const ( decimals = 100000000 ) -var errInvalidString = errors.New("Fixed8 must satisfy following regex \\d+(\\.\\d{1,8})?") +var errInvalidString = errors.New("fixed8 must satisfy following regex \\d+(\\.\\d{1,8})?") // Fixed8 represents a fixed-point number with precision 10^-8. type Fixed8 int64 diff --git a/pkg/vm/cli/cli.go b/pkg/vm/cli/cli.go index f871db287..d5f4461f4 100644 --- a/pkg/vm/cli/cli.go +++ b/pkg/vm/cli/cli.go @@ -213,7 +213,7 @@ func handleBreak(c *ishell.Context) { } v := getVMFromContext(c) if len(c.Args) != 1 { - c.Err(errors.New("Missing parameter ")) + c.Err(errors.New("missing parameter ")) } n, err := strconv.Atoi(c.Args[0]) if err != nil { diff --git a/pkg/vm/compiler/compiler.go b/pkg/vm/compiler/compiler.go index 94bf31ee8..1bb1cc9b8 100644 --- a/pkg/vm/compiler/compiler.go +++ b/pkg/vm/compiler/compiler.go @@ -87,7 +87,7 @@ func CompileAndSave(src string, o *Options) error { } b, err = Compile(bytes.NewReader(b), o) if err != nil { - return fmt.Errorf("Error while trying to compile smart contract file: %v", err) + return fmt.Errorf("error while trying to compile smart contract file: %v", err) } log.Println(hex.EncodeToString(b))