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 21:32:50 +0800
commitc18aa885e8c482115ad4f174b20c3d5288db0428 (patch)
treef9c17f3cbd0bd5e109b66897841638245089e907
parent34b26693e4058a6231ffd320e209834336b6ba73 (diff)
downloaddexon-c18aa885e8c482115ad4f174b20c3d5288db0428.tar.gz
dexon-c18aa885e8c482115ad4f174b20c3d5288db0428.tar.zst
dexon-c18aa885e8c482115ad4f174b20c3d5288db0428.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",