[#14] Adopt stackitems in inner ring

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-27 14:57:52 +03:00
parent 29d6ababae
commit 6520d00ff0
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ func IsInnerRing(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (bo
return false, err
}
isInnerRing, err := client.BoolFromStackParameter(val[0])
isInnerRing, err := client.BoolFromStackItem(val[0])
if err != nil {
return false, err
}

View file

@ -21,7 +21,7 @@ func Epoch(cli *client.Client, con util.Uint160) (int64, error) {
return 0, err
}
epoch, err := client.IntFromStackParameter(val[0])
epoch, err := client.IntFromStackItem(val[0])
if err != nil {
return 0, err
}