From b8d3c19e0f4db43f075b8816357945d744da401d Mon Sep 17 00:00:00 2001 From: Ruaridh Date: Tue, 20 Dec 2022 18:38:22 +0000 Subject: [PATCH] Use default account type for genesis cmd (#1438) --- cmd/kava/cmd/genaccounts.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/kava/cmd/genaccounts.go b/cmd/kava/cmd/genaccounts.go index 5c3bfc5b..22be7d18 100644 --- a/cmd/kava/cmd/genaccounts.go +++ b/cmd/kava/cmd/genaccounts.go @@ -7,7 +7,6 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" @@ -22,8 +21,6 @@ import ( genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/tharsis/ethermint/crypto/hd" - ethermint "github.com/tharsis/ethermint/types" - evmtypes "github.com/tharsis/ethermint/x/evm/types" ) const ( @@ -129,10 +126,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa return errors.New("invalid vesting parameters; must supply start and end time or end time") } } else { - genAccount = ðermint.EthAccount{ - BaseAccount: baseAccount, - CodeHash: common.BytesToHash(evmtypes.EmptyCodeHash).Hex(), - } + genAccount = baseAccount } if err := genAccount.Validate(); err != nil {