aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-18 19:54:57 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:53 +0800
commit23d726b37708491d3f4e16519590ecdbc5c9fe32 (patch)
tree00767da9e560ad5fbddf0a6d47be533716e77955
parent330c6b2be53f2c40e245d0df6862c69ab0c01327 (diff)
downloaddexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar.gz
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar.bz2
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar.lz
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar.xz
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.tar.zst
dexon-23d726b37708491d3f4e16519590ecdbc5c9fe32.zip
test: create account storage for governance contract
-rw-r--r--core/vm/governance.go2
-rw-r--r--test/genesis.json5
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",