forked from TrueCloudLab/frostfs-node
[#14] Adopt stackitems in inner ring
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
29d6ababae
commit
6520d00ff0
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ func IsInnerRing(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (bo
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
isInnerRing, err := client.BoolFromStackParameter(val[0])
|
isInnerRing, err := client.BoolFromStackItem(val[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ func Epoch(cli *client.Client, con util.Uint160) (int64, error) {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
epoch, err := client.IntFromStackParameter(val[0])
|
epoch, err := client.IntFromStackItem(val[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue