[#30] Update to latest neofs-api-go and fix conflicts

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-16 14:58:58 +03:00 committed by Alex Vanin
parent 84b4ff0755
commit 9c1c023f05
6 changed files with 27 additions and 33 deletions

View file

@ -20,12 +20,7 @@ func NewExecutor(client *wrapper.Wrapper) accountingSvc.ServiceExecutor {
}
func (s *morphExecutor) Balance(ctx context.Context, body *accounting.BalanceRequestBody) (*accounting.BalanceResponseBody, error) {
id, err := owner.IDFromV2(body.GetOwnerID())
if err != nil {
return nil, err
}
amount, err := s.client.BalanceOf(id)
amount, err := s.client.BalanceOf(owner.NewIDFromV2(body.GetOwnerID()))
if err != nil {
return nil, err
}