[#525] ir/container: Write session token on eACL table approval

Approved eACL table should be stored in sidechain along with related session
token.

Forward session token from `SetEACL` event to `Wrapper.PutEACL` method.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-05-25 19:33:00 +03:00 committed by Leonard Lyubich
parent db7312274c
commit 4ef369732a
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (cp *Processor) checkEACLOwnership(binTable []byte, key *keys.PublicKey) er
}
func (cp *Processor) approveSetEACL(e container.SetEACL) {
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature(), nil)
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature(), e.SessionToken())
if err != nil {
cp.log.Error("could not approve set EACL",
zap.String("error", err.Error()),