Fix linting errors
This commit is contained in:
parent
5b2496553c
commit
ccc6ae6984
@ -242,6 +242,9 @@ func (tx Transaction) VerifySig(chainID *big.Int) (ethcmn.Address, error) {
|
|||||||
// Type implements the sdk.Msg interface. It returns the type of the
|
// Type implements the sdk.Msg interface. It returns the type of the
|
||||||
// Transaction.
|
// 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 }
|
func (tx Transaction) Route() string { return RouteTxEthereum }
|
||||||
|
|
||||||
// ValidateBasic implements the sdk.Msg interface. It performs basic validation
|
// ValidateBasic implements the sdk.Msg interface. It performs basic validation
|
||||||
|
@ -25,7 +25,7 @@ func GenerateEthAddress() ethcmn.Address {
|
|||||||
|
|
||||||
// PrivKeyToEthAddress generates an Ethereum address given an ECDSA private key.
|
// PrivKeyToEthAddress generates an Ethereum address given an ECDSA private key.
|
||||||
func PrivKeyToEthAddress(p *ecdsa.PrivateKey) ethcmn.Address {
|
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
|
// ValidateSigner attempts to validate a signer for a given slice of bytes over
|
||||||
|
@ -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
|
// Commit writes the state to the appropriate KVStores. For each state object
|
||||||
|
Loading…
Reference in New Issue
Block a user