From d09c4f37a430b03e42d0ae3324907f040adc1449 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 29 Nov 2018 10:20:00 +0800 Subject: Fix lint --- core/genesis.go | 2 +- core/governance.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/genesis.go b/core/genesis.go index 4b0e878fe..ce02249c9 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 { -- cgit v1.2.3