From d442b204ca12f4c99a93a58bba7780290371d15a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 11 Nov 2020 16:50:34 +0300 Subject: [PATCH] [#193] pkg/client: Update container structure Signed-off-by: Alex Vanin --- pkg/client/container.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/client/container.go b/pkg/client/container.go index c723de13..e0e5a378 100644 --- a/pkg/client/container.go +++ b/pkg/client/container.go @@ -100,10 +100,10 @@ func (c Client) putContainerV2(ctx context.Context, cnr *container.Container, op } // set transport version - cnr.SetVersion(c.remoteNode.Version.ToV2()) + cnr.SetVersion(c.remoteNode.Version) // if container owner is not set, then use client key as owner - if cnr.GetOwnerID() == nil { + if cnr.OwnerID() == nil { w, err := owner.NEO3WalletFromPublicKey(&c.key.PublicKey) if err != nil { return nil, err @@ -112,7 +112,7 @@ func (c Client) putContainerV2(ctx context.Context, cnr *container.Container, op ownerID := new(owner.ID) ownerID.SetNeo3Wallet(w) - cnr.SetOwnerID(ownerID.ToV2()) + cnr.SetOwnerID(ownerID) } reqBody := new(v2container.PutRequestBody)