move demo addresses to test folder

pull/1209/head
Minh Doan 5 years ago committed by Minh Doan
parent ac9f5c4054
commit a8a9953a82
  1. 7
      node/node_genesis.go
  2. 2
      test/demo/demo_constants.go

@ -8,9 +8,6 @@ import (
"strings"
"github.com/ethereum/go-ethereum/common"
nodeconfig "github.com/harmony-one/harmony/internal/configs/node"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/params"
@ -18,8 +15,10 @@ import (
"github.com/harmony-one/harmony/core"
"github.com/harmony-one/harmony/core/types"
common2 "github.com/harmony-one/harmony/internal/common"
nodeconfig "github.com/harmony-one/harmony/internal/configs/node"
"github.com/harmony-one/harmony/internal/genesis"
"github.com/harmony-one/harmony/internal/utils"
demo "github.com/harmony-one/harmony/test/demo"
)
const (
@ -153,7 +152,7 @@ func AddNodeAddressesToGenesisAlloc(genesisAlloc core.GenesisAlloc) {
// AddDemoAddressesToGenesisAlloc funds demo addresses with free fund.
func AddDemoAddressesToGenesisAlloc(genesisAlloc core.GenesisAlloc) {
for _, account := range DemoAccounts {
for _, account := range demo.DemoAccounts {
testBankFunds := big.NewInt(InitFreeFund)
testBankFunds = testBankFunds.Mul(testBankFunds, big.NewInt(params.Ether))
address := common.HexToAddress(account.Address)

@ -1,4 +1,4 @@
package node
package demo
// DeployAccount is the accounts used for development.
type DeployAccount struct {
Loading…
Cancel
Save