diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-12 13:54:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 139b719ec39da205841c857b865a340f370bafb2 (patch) | |
tree | fceed7f6e1b595f64c1458decc0ab8ea8ca0b5c8 /core/genesis.go | |
parent | 7df00d48a6c8ad89de221c5d9a3606e2b39d55a3 (diff) | |
download | dexon-139b719ec39da205841c857b865a340f370bafb2.tar dexon-139b719ec39da205841c857b865a340f370bafb2.tar.gz dexon-139b719ec39da205841c857b865a340f370bafb2.tar.bz2 dexon-139b719ec39da205841c857b865a340f370bafb2.tar.lz dexon-139b719ec39da205841c857b865a340f370bafb2.tar.xz dexon-139b719ec39da205841c857b865a340f370bafb2.tar.zst dexon-139b719ec39da205841c857b865a340f370bafb2.zip |
dex: governance: implement governance interface
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/genesis.go b/core/genesis.go index 8dfd08524..149241cf5 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -237,10 +237,7 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { db = ethdb.NewMemDatabase() } statedb, _ := state.New(common.Hash{}, state.NewDatabase(db)) - govStateHelper := vm.GovernanceStateHelper{ - Address: vm.GovernanceContractAddress, - StateDB: statedb, - } + govStateHelper := vm.GovernanceStateHelper{statedb} for addr, account := range g.Alloc { statedb.AddBalance(addr, new(big.Int).Sub(account.Balance, account.Staked)) statedb.SetCode(addr, account.Code) |