From 96b38f7e86afbb8c9ad13fb174c34f76633b259f Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 17 Feb 2023 21:28:35 +0300 Subject: [PATCH] [#239] morph/client: Add CalledByEntry into the "grouped" scope Fixes #2230, fixes #2263. CustomGroups are nice while we're only calling NeoFS contracts, but it doesn't work at all for standard ones like GAS or Notary. Signed-off-by: Roman Khimov Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 1 + pkg/morph/client/nns.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4d6e7ca0..b13469d06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ Changelog for FrostFS Node - Iterating over just removed files by FSTree (#98) - Parts of a locked object could not be removed anymore (#141) - Non-alphabet nodes do not try to handle alphabet events (#181) +- Failing SN and IR transactions because of incorrect scopes (#2230, #2263) ### Removed ### Updated diff --git a/pkg/morph/client/nns.go b/pkg/morph/client/nns.go index 0a23aa47a..c3b900ddb 100644 --- a/pkg/morph/client/nns.go +++ b/pkg/morph/client/nns.go @@ -208,7 +208,7 @@ func (c *Client) SetGroupSignerScope() error { return err } - c.signer.Scopes = transaction.CustomGroups + c.signer.Scopes = transaction.CustomGroups | transaction.CalledByEntry c.signer.AllowedGroups = []*keys.PublicKey{pub} return nil }