forked from cerc-io/laconicd-deprecated
Fix linting errors
This commit is contained in:
parent
5b2496553c
commit
ccc6ae6984
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user