[#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>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-05-25 12:25:55 +03:00 committed by Alex Vanin
parent fad477df2a
commit 97bd85f9e1
1 changed files with 6 additions and 0 deletions

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 {