Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 952e25c

Browse files
author
David Ansermino
committed
Adds storage keys
1 parent f2e8968 commit 952e25c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/ethermint.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ var (
5959
crisis.AppModuleBasic{},
6060
slashing.AppModuleBasic{},
6161
supply.AppModuleBasic{},
62-
evm.AppModuleBasic{},
62+
// TODO: Enable EVM AppModuleBasic
63+
//evm.AppModuleBasic{},
6364
)
6465
)
6566

@@ -147,8 +148,8 @@ func NewEthermintApp(logger tmlog.Logger, db dbm.DB, loadLatest bool,
147148
keyGov: sdk.NewKVStoreKey(gov.StoreKey),
148149
keyParams: sdk.NewKVStoreKey(params.StoreKey),
149150
tkeyParams: sdk.NewTransientStoreKey(params.TStoreKey),
150-
evmStoreKey: sdk.NewKVStoreKey(params.StoreKey),
151-
evmCodeKey: sdk.NewKVStoreKey(params.StoreKey),
151+
evmStoreKey: sdk.NewKVStoreKey(evmtypes.EvmStoreKey),
152+
evmCodeKey: sdk.NewKVStoreKey(evmtypes.EvmCodeKey),
152153
}
153154

154155
// init params keeper and subspaces

importer/importer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ var (
5050
// paramsKey = sdk.NewKVStoreKey("params")
5151
// tParamsKey = sdk.NewTransientStoreKey("transient_params")
5252
accKey = sdk.NewKVStoreKey("acc")
53-
storageKey = sdk.NewKVStoreKey("storage")
54-
codeKey = sdk.NewKVStoreKey("code")
53+
storageKey = sdk.NewKVStoreKey(evmtypes.EvmStoreKey)
54+
codeKey = sdk.NewKVStoreKey(evmtypes.EvmCodeKey)
5555

5656
logger = tmlog.NewNopLogger()
5757

@@ -306,7 +306,7 @@ func accumulateRewards(
306306
// ApplyDAOHardFork modifies the state database according to the DAO hard-fork
307307
// rules, transferring all balances of a set of DAO accounts to a single refund
308308
// contract.
309-
// Code is pulled from go-ethereum 1.9 because the StateDB interface does not include the
309+
// Code is pulled from go-ethereum 1.9 because the StateDB interface does not include the
310310
// SetBalance function implementation
311311
// Ref: https://github.com/ethereum/go-ethereum/blob/52f2461774bcb8cdd310f86b4bc501df5b783852/consensus/misc/dao.go#L74
312312
func applyDAOHardFork(statedb *evmtypes.CommitStateDB) {

x/evm/types/key.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const (
44
// module name
55
ModuleName = "ethermint"
66

7-
// TODO: Use this
8-
// StoreKey to be used when creating the KVStore
9-
StoreKey = ModuleName
7+
EvmStoreKey = "evmstore"
8+
EvmCodeKey = "evmcode"
109
)

0 commit comments

Comments
 (0)