cli/query: output key in voter data

People vote for keys, not addresses.
This commit is contained in:
Roman Khimov 2021-07-22 15:05:09 +03:00
parent 24ee8fab5c
commit fde3cce93d
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ func TestRegisterCandidate(t *testing.T) {
e.Run(t, "neo-go", "query", "voter",
"--rpc-endpoint", "http://"+e.RPC.Addr,
validatorPriv.Address())
e.checkNextLine(t, "^\\s*Voted:\\s+"+validatorPriv.Address())
e.checkNextLine(t, "^\\s*Voted:\\s+"+validatorHex+"\\s+\\("+validatorPriv.Address()+"\\)$")
e.checkNextLine(t, "^\\s*Amount\\s*:\\s*"+b.String()+"$")
e.checkNextLine(t, "^\\s*Block\\s*:\\s*"+strconv.FormatUint(uint64(index), 10))
e.checkEOF(t)