forked from TrueCloudLab/frostfs-node
[#787] morph: Return VUB from Invoke
method
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
5466e88444
commit
518f3baf41
25 changed files with 69 additions and 48 deletions
|
@ -41,7 +41,7 @@ func (x *Client) BindKeys(p BindKeysPrm) error {
|
|||
prm.SetArgs(p.scriptHash, p.keys)
|
||||
prm.InvokePrmOptional = p.InvokePrmOptional
|
||||
|
||||
err := x.client.Invoke(prm)
|
||||
_, err := x.client.Invoke(prm)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not invoke method (%s): %w", bindKeysMethod, err)
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func (x *Client) UnbindKeys(args UnbindKeysPrm) error {
|
|||
prm.SetArgs(args.scriptHash, args.keys)
|
||||
prm.InvokePrmOptional = args.InvokePrmOptional
|
||||
|
||||
err := x.client.Invoke(prm)
|
||||
_, err := x.client.Invoke(prm)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not invoke method (%s): %w", unbindKeysMethod, err)
|
||||
}
|
||||
|
|
|
@ -43,7 +43,8 @@ func (x *Client) Cheque(p ChequePrm) error {
|
|||
prm.SetArgs(p.id, p.user, p.amount, p.lock)
|
||||
prm.InvokePrmOptional = p.InvokePrmOptional
|
||||
|
||||
return x.client.Invoke(prm)
|
||||
_, err := x.client.Invoke(prm)
|
||||
return err
|
||||
}
|
||||
|
||||
// AlphabetUpdatePrm groups parameters of AlphabetUpdate operation.
|
||||
|
@ -71,5 +72,6 @@ func (x *Client) AlphabetUpdate(p AlphabetUpdatePrm) error {
|
|||
prm.SetArgs(p.id, p.pubs)
|
||||
prm.InvokePrmOptional = p.InvokePrmOptional
|
||||
|
||||
return x.client.Invoke(prm)
|
||||
_, err := x.client.Invoke(prm)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue