Fix linting errors

This commit is contained in:
Aleksandr Bezobchuk 2018-10-24 10:53:23 -04:00
parent 5b2496553c
commit ccc6ae6984
3 changed files with 6 additions and 3 deletions

View File

@ -241,7 +241,10 @@ func (tx Transaction) VerifySig(chainID *big.Int) (ethcmn.Address, error) {
// Type implements the sdk.Msg interface. It returns the type of the
// Transaction.
func (tx Transaction) Type() string { return TypeTxEthereum }
func (tx Transaction) Type() string { return TypeTxEthereum }
// Route implements the sdk.Msg interface. It returns the route of the
// Transaction.
func (tx Transaction) Route() string { return RouteTxEthereum }
// ValidateBasic implements the sdk.Msg interface. It performs basic validation

View File

@ -25,7 +25,7 @@ func GenerateEthAddress() ethcmn.Address {
// PrivKeyToEthAddress generates an Ethereum address given an ECDSA private key.
func PrivKeyToEthAddress(p *ecdsa.PrivateKey) ethcmn.Address {
return ethcrypto.PubkeyToAddress(ecdsa.PublicKey(p.PublicKey))
return ethcrypto.PubkeyToAddress(p.PublicKey)
}
// ValidateSigner attempts to validate a signer for a given slice of bytes over

View File

@ -306,7 +306,7 @@ func (csdb *CommitStateDB) StorageTrie(addr ethcmn.Address) ethstate.Trie {
}
// ----------------------------------------------------------------------------
// Persistance
// Persistence
// ----------------------------------------------------------------------------
// Commit writes the state to the appropriate KVStores. For each state object