diff --git a/node/demo_contract.go b/node/demo_contract.go index 31abb98d6..633cbadad 100644 --- a/node/demo_contract.go +++ b/node/demo_contract.go @@ -95,7 +95,7 @@ func (node *Node) CreateTransactionForEnterMethod(amount int64, priKey string) e // GetResultDirectly get current players and their balances, not from smart contract. func (node *Node) GetResultDirectly(priKey string) (players []string, balances []*big.Int) { for _, account := range contract_constants.DemoAccounts { - players = append(players, account.Address) + players = append(players, account.Private) key, err := crypto.HexToECDSA(account.Private) if err != nil { utils.GetLogInstance().Error("Error when HexToECDSA")