[#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 <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-25 12:25:55 +03:00 committed by Alex Vanin
parent fad477df2a
commit 97bd85f9e1

View file

@ -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 {