aboutsummaryrefslogtreecommitdiffstats
path: root/core/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 10:20:00 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commitd09c4f37a430b03e42d0ae3324907f040adc1449 (patch)
tree05f27af84647a2d3296a8d4fec578c11c5a1f87a /core/governance.go
parent25a0e3a6b67cf646611153599e5b9cde2f2e8435 (diff)
downloadgo-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.gz
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.bz2
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.lz
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.xz
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.zst
go-tangerine-d09c4f37a430b03e42d0ae3324907f040adc1449.zip
Fix lint
Diffstat (limited to 'core/governance.go')
-rw-r--r--core/governance.go4
1 files changed, 2 insertions, 2 deletions
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 {