[#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:
parent
fad477df2a
commit
97bd85f9e1
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue