mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
Use default account type for genesis cmd (#1438)
This commit is contained in:
parent
1f6a7d7ae1
commit
b8d3c19e0f
@ -7,7 +7,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
@ -22,8 +21,6 @@ import (
|
|||||||
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
|
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
|
||||||
|
|
||||||
"github.com/tharsis/ethermint/crypto/hd"
|
"github.com/tharsis/ethermint/crypto/hd"
|
||||||
ethermint "github.com/tharsis/ethermint/types"
|
|
||||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
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")
|
return errors.New("invalid vesting parameters; must supply start and end time or end time")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
genAccount = ðermint.EthAccount{
|
genAccount = baseAccount
|
||||||
BaseAccount: baseAccount,
|
|
||||||
CodeHash: common.BytesToHash(evmtypes.EmptyCodeHash).Hex(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := genAccount.Validate(); err != nil {
|
if err := genAccount.Validate(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user