From 97bd85f9e14eeeb44085a18931ea67ac010bfcc1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 25 May 2021 12:25:55 +0300 Subject: [PATCH] [#505] morph/container: Add Put method arguments Pass session token (byte array) and bind key flag (boolean) arguments to `Put` method call of `Container` contract. Signed-off-by: Leonard Lyubich --- pkg/morph/client/container/put.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/morph/client/container/put.go b/pkg/morph/client/container/put.go index e693977f47..4c6060ac3e 100644 --- a/pkg/morph/client/container/put.go +++ b/pkg/morph/client/container/put.go @@ -12,6 +12,10 @@ type PutArgs struct { sig []byte // binary container signature publicKey []byte // public key of container owner + + token []byte // binary session token + + bindKey bool // bind key to account or not } // SetPublicKey sets the public key of container owner @@ -40,6 +44,8 @@ func (c *Client) Put(args PutArgs) error { args.cnr, args.sig, args.publicKey, + args.token, + args.bindKey, ) if err != nil {