circleCI config and linting fixes (#3)

* Fixed circleci config and fixed linting warnings

* Updated circleCI for go version 1.12 and split jobs for build/testing

* updated go version to 1.12.5 for circleCI

* Go mod tidy dependencies

* Updated linting tools and cleared up code lint smells

* Added workflow to run build and test jobs

* Moved linting command to build workflow

* Get dependencies before linting by default

* Added go module flag to linter and increased deadline to pull packages
This commit is contained in:
Austin Abell
2019-07-02 15:36:22 -04:00
committed by GitHub
parent 18d57af55e
commit 69333ec1b3
15 changed files with 397 additions and 98 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ func init() {
msgCodec = cdc.Seal()
}
// Register concrete types and interfaces on the given codec.
// RegisterCodec registers concrete types and interfaces on the given codec.
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
}
+3 -3
View File
@@ -121,9 +121,9 @@ type (
}
touchChange struct {
account *ethcmn.Address
prev bool
prevDirty bool
account *ethcmn.Address
// prev bool
// prevDirty bool
}
)
+2 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/pkg/errors"
)
// GenerateAddress generates an Ethereum address.
// GenerateEthAddress generates an Ethereum address.
func GenerateEthAddress() ethcmn.Address {
priv, err := crypto.GenerateKey()
if err != nil {
@@ -40,6 +40,7 @@ func ValidateSigner(signBytes, sig []byte, signer ethcmn.Address) error {
func rlpHash(x interface{}) (hash ethcmn.Hash) {
hasher := ethsha.NewKeccak256()
// nolint:errcheck
rlp.Encode(hasher, x)
hasher.Sum(hash[:0])