cli/wallet: make 'addr' optional for NEP5 balances query

Iterate over all accounts by default.
This commit is contained in:
Roman Khimov 2020-09-28 17:24:21 +03:00
parent 8d3e06498c
commit fdcc72dad0
3 changed files with 115 additions and 49 deletions

View file

@ -127,9 +127,14 @@ func (e *executor) GetTransaction(t *testing.T, h util.Uint256) (*transaction.Tr
return tx, height
}
func (e *executor) checkNextLine(t *testing.T, expected string) {
func (e *executor) getNextLine(t *testing.T) string {
line, err := e.Out.ReadString('\n')
require.NoError(t, err)
return line
}
func (e *executor) checkNextLine(t *testing.T, expected string) {
line := e.getNextLine(t)
e.checkLine(t, line, expected)
}