diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-29 10:20:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 64fcbfe3095f94690e8509fce7f1e4a8cdbcb362 (patch) | |
tree | 0fbf2ca9e2788647e9bd10d5164987c22a649329 /core | |
parent | f3135faaddd6a2af7125471ed37fc13571a8be91 (diff) | |
download | dexon-64fcbfe3095f94690e8509fce7f1e4a8cdbcb362.tar.gz dexon-64fcbfe3095f94690e8509fce7f1e4a8cdbcb362.tar.zst dexon-64fcbfe3095f94690e8509fce7f1e4a8cdbcb362.zip |
Fix lint
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 2 | ||||
-rw-r--r-- | core/governance.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go index 3e261deed..c17615f70 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -261,7 +261,7 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { db = ethdb.NewMemDatabase() } statedb, _ := state.New(common.Hash{}, state.NewDatabase(db)) - govStateHelper := vm.GovernanceStateHelper{statedb} + govStateHelper := vm.GovernanceStateHelper{StateDB: statedb} totalStaked := big.NewInt(0) diff --git a/core/governance.go b/core/governance.go index dcc390eb4..4b625c0fa 100644 --- a/core/governance.go +++ b/core/governance.go @@ -54,7 +54,7 @@ func (g *Governance) GetHeadHelper() *vm.GovernanceStateHelper { log.Error("Governance head state not ready", "err", err) panic(err) } - return &vm.GovernanceStateHelper{headState} + return &vm.GovernanceStateHelper{StateDB: headState} } func (g *Governance) getHelperAtRound(round uint64) *vm.GovernanceStateHelper { @@ -71,7 +71,7 @@ func (g *Governance) getHelperAtRound(round uint64) *vm.GovernanceStateHelper { log.Error("Governance state not ready", "round", round, "height", height, "err", err) panic(err) } - return &vm.GovernanceStateHelper{s} + return &vm.GovernanceStateHelper{StateDB: s} } func (g *Governance) GetConfigHelper(round uint64) *vm.GovernanceStateHelper { |