From 90a3dd3d46d923d6017a6b675a136bcac8de24d1 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 4 Oct 2018 12:12:06 -0400 Subject: [PATCH] Update NewCommitStateDB constructor to use state keys --- state/statedb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/state/statedb.go b/state/statedb.go index 1f050e12..8c39707e 100644 --- a/state/statedb.go +++ b/state/statedb.go @@ -72,10 +72,12 @@ type CommitStateDB struct { // NewCommitStateDB returns a reference to a newly initialized CommitStateDB // which implements Geth's state.StateDB interface. -func NewCommitStateDB(ctx sdk.Context, am auth.AccountMapper) (*CommitStateDB, error) { +func NewCommitStateDB(ctx sdk.Context, am auth.AccountMapper, storageKey, codeKey sdk.StoreKey) (*CommitStateDB, error) { return &CommitStateDB{ ctx: ctx, am: am, + storageKey: storageKey, + codeKey: codeKey, stateObjects: make(map[ethcmn.Address]*stateObject), stateObjectsDirty: make(map[ethcmn.Address]struct{}), logs: make(map[ethcmn.Hash][]*ethtypes.Log),