cli: use AddressFlag for calc-hash

This commit is contained in:
Anna Shaleva 2021-04-16 12:09:59 +03:00
parent 90b054afd0
commit df24c51262
2 changed files with 10 additions and 6 deletions

View file

@ -211,6 +211,11 @@ func TestComlileAndInvokeFunction(t *testing.T) {
e.checkTxPersisted(t)
t.Run("check calc hash", func(t *testing.T) {
// missing sender
e.RunWithError(t, "neo-go", "contract", "calc-hash",
"--in", nefName,
"--manifest", manifestName)
e.Run(t, "neo-go", "contract", "calc-hash",
"--sender", validatorAddr, "--in", nefName,
"--manifest", manifestName)