Tools configuration and linters (#215)

* tools config

* lint

* lint

* codecov
This commit is contained in:
Federico Kunze
2020-03-16 19:53:24 -03:00
committed by GitHub
parent afe7289415
commit 87b625ed50
17 changed files with 172 additions and 71 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import (
emintcrypto "github.com/cosmos/ethermint/crypto"
params "github.com/cosmos/ethermint/rpc/args"
emint "github.com/cosmos/ethermint/types"
etypes "github.com/cosmos/ethermint/types"
"github.com/cosmos/ethermint/utils"
"github.com/cosmos/ethermint/version"
"github.com/cosmos/ethermint/x/evm"
@@ -885,7 +884,7 @@ func (e *PublicEthAPI) generateFromArgs(args params.SendTxArgs) (msg *types.Ethe
// Set default gas price
// TODO: Change to min gas price from context once available through server/daemon
gasPrice = big.NewInt(etypes.DefaultGasPrice)
gasPrice = big.NewInt(emint.DefaultGasPrice)
}
if args.Nonce == nil {
+1 -1
View File
@@ -20,7 +20,7 @@ func NewPublicNetAPI(cliCtx context.CLIContext) *PublicNetAPI {
// parse the chainID from a integer string
intChainID, err := strconv.ParseUint(chainID, 0, 64)
if err != nil {
panic(fmt.Sprintf("Invalid chainID: %s, must be integer format", chainID))
panic(fmt.Sprintf("invalid chainID: %s, must be integer format", chainID))
}
return &PublicNetAPI{