Linted Repo (#136)

* Linted
* Updated lint to include config file
* Linted repo
* Updated make command

* made requested changes

* added no lint
This commit is contained in:
Dustin Brickwood
2019-11-01 10:26:53 -05:00
committed by GitHub
parent 9294fa8423
commit fc57cabcab
7 changed files with 251 additions and 9 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import (
"io"
"math/big"
"sync/atomic"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/ethermint/types"
@@ -371,4 +372,4 @@ func recoverEthSig(R, S, Vb *big.Int, sigHash ethcmn.Hash) (ethcmn.Address, erro
copy(addr[:], ethcrypto.Keccak256(pub[1:])[12:])
return addr, nil
}
}
+1 -2
View File
@@ -45,8 +45,7 @@ func ValidateSigner(signBytes, sig []byte, signer ethcmn.Address) error {
func rlpHash(x interface{}) (hash ethcmn.Hash) {
hasher := sha3.NewLegacyKeccak256()
// nolint:errcheck
//nolint:gosec,errcheck
rlp.Encode(hasher, x)
hasher.Sum(hash[:0])