cli/query: output key in voter data
People vote for keys, not addresses.
This commit is contained in:
parent
24ee8fab5c
commit
fde3cce93d
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue