Updates SDK and implement application genaccounts (#143)

* Transition to updated sdk with modular ante handler and new genaccounts setup

* Update genesis account type to be an Ethermint account

* Change default keybase and tidy modules

* Fix lint
This commit is contained in:
Austin Abell
2019-11-04 15:45:02 -05:00
committed by GitHub
parent 42227a1b8c
commit 97f73063a5
10 changed files with 298 additions and 261 deletions
+3 -8
View File
@@ -7,7 +7,7 @@ import (
"math/big"
sdk "github.com/cosmos/cosmos-sdk/types"
auth "github.com/cosmos/cosmos-sdk/x/auth"
authexported "github.com/cosmos/cosmos-sdk/x/auth/exported"
"github.com/cosmos/ethermint/types"
ethcmn "github.com/ethereum/go-ethereum/common"
@@ -77,15 +77,10 @@ type (
}
)
func newObject(db *CommitStateDB, accProto auth.Account) *stateObject {
func newObject(db *CommitStateDB, accProto authexported.Account) *stateObject {
acc, ok := accProto.(*types.Account)
if !ok {
// State object can be created from a baseAccount
baseAccount, ok := accProto.(*auth.BaseAccount)
if !ok {
panic(fmt.Sprintf("invalid account type for state object: %T", accProto))
}
acc = &types.Account{BaseAccount: baseAccount}
panic(fmt.Sprintf("invalid account type for state object: %T", accProto))
}
if acc.CodeHash == nil {