aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/blockchain.go2
-rw-r--r--core/vm/vm.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 489959691..93291de48 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1030,7 +1030,7 @@ func (bc *BlockChain) WriteBlockWithState(block *types.Block, receipts []*types.
tt := time.Now()
log.Debug("Write gov state", "n", n, "t", tt)
govState, err := state.GetGovState(statedb, block.Header(),
- vm.GovernanceContractAddress)
+ evm.GovernanceContractAddress)
log.Debug("Get gov state finished", "n", n, "elapsed", time.Since(tt))
if err == nil {
bc.govmu.Lock()
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 780320d2b..cf790db0b 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -57,7 +57,7 @@ func Register(idx uint8, c createFunc) {
createFuncs[idx] = c
}
-// NewExecPack creates a ExecPack instance, and create all VM instance.
+// NewExecPack creates a ExecPack instance, and create all VM instances.
func NewExecPack(context *Context, stateDB StateDB, chainConfig *params.ChainConfig, vmConfigs [NUMS]interface{}) ExecPack {
p := ExecPack{
Context: context,