[#177] sdk/client: Set version of new EACL table
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e6035a3249
commit
2aa40b0dd3
1 changed files with 1 additions and 0 deletions
|
@ -369,6 +369,7 @@ func (c Client) setEACLV2(ctx context.Context, eacl *eacl.Table, opts ...CallOpt
|
||||||
|
|
||||||
reqBody := new(v2container.SetExtendedACLRequestBody)
|
reqBody := new(v2container.SetExtendedACLRequestBody)
|
||||||
reqBody.SetEACL(eacl.ToV2())
|
reqBody.SetEACL(eacl.ToV2())
|
||||||
|
reqBody.GetEACL().SetVersion(c.remoteNode.Version.ToV2())
|
||||||
|
|
||||||
signWrapper := v2signature.StableMarshalerWrapper{SM: reqBody.GetEACL()}
|
signWrapper := v2signature.StableMarshalerWrapper{SM: reqBody.GetEACL()}
|
||||||
err := signature.SignDataWithHandler(c.key, signWrapper, func(key []byte, sig []byte) {
|
err := signature.SignDataWithHandler(c.key, signWrapper, func(key []byte, sig []byte) {
|
||||||
|
|
Loading…
Reference in a new issue