diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-18 19:54:57 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 3afdb7dfc623f6d8c793fe15c3597655afe95fb6 (patch) | |
tree | 47273f37c6e0f3bab71f76fd5f68f8caeccf2f6e | |
parent | 308af1ad94b38a3b76b345b3fc6e3e279a97f33b (diff) | |
download | dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar.gz dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar.bz2 dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar.lz dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar.xz dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.tar.zst dexon-3afdb7dfc623f6d8c793fe15c3597655afe95fb6.zip |
test: create account storage for governance contract
-rw-r--r-- | core/vm/governance.go | 2 | ||||
-rw-r--r-- | test/genesis.json | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go index d9c9a8142..a720e31f5 100644 --- a/core/vm/governance.go +++ b/core/vm/governance.go @@ -35,7 +35,7 @@ import ( coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types" ) -var GovernanceContractAddress = common.BytesToAddress([]byte{0XED}) // Reverse of DEX0 +var GovernanceContractAddress = common.HexToAddress("5765692d4e696e6720536f6e696320426f6a6965") var minStake = big.NewInt(10000000000000) const abiJSON = ` diff --git a/test/genesis.json b/test/genesis.json index 51857df5f..2c6b51d20 100644 --- a/test/genesis.json +++ b/test/genesis.json @@ -28,6 +28,11 @@ "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "alloc": { + "0x5765692d4e696e6720536f6e696320426f6a6965": { + "balance": "0", + "staked": "0", + "code": "0x5765692d4e696e6720536f6e696320426f6a6965" + }, "0x7C3c31B19395A5e2627F921Cc2802560B71f1caB": { "balance": "1000000000000000000000", "staked": "500000000000000000000", |