Fixes for the morph client and neofs-adm #239

Merged
fyrchik merged 6 commits from fyrchik/frostfs-node:some-fixes into master 2023-04-13 13:15:32 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit fdc585382d - Show all commits

View file

@ -56,6 +56,7 @@ Changelog for FrostFS Node
- Parts of a locked object could not be removed anymore (#141) - Parts of a locked object could not be removed anymore (#141)
- Non-alphabet nodes do not try to handle alphabet events (#181) - Non-alphabet nodes do not try to handle alphabet events (#181)
- Failing SN and IR transactions because of incorrect scopes (#2230, #2263) - Failing SN and IR transactions because of incorrect scopes (#2230, #2263)
- Global scope used for some transactions (#2230, #2263)
### Removed ### Removed
### Updated ### Updated

View file

@ -208,10 +208,18 @@ func (c *Client) SetGroupSignerScope() error {
return err return err
} }
c.cfg.signer = &transaction.Signer{ // Don't change c before everything is OK.
cfg := c.cfg
cfg.signer = &transaction.Signer{
Scopes: transaction.CustomGroups | transaction.CalledByEntry, Scopes: transaction.CustomGroups | transaction.CalledByEntry,
Review

Scopes changed. Is it ok?

Scopes changed. Is it ok?
Review

Yes, it is similar to fix in another commit.

Yes, it is similar to fix in another commit.
AllowedGroups: []*keys.PublicKey{pub}, AllowedGroups: []*keys.PublicKey{pub},
} }
rpcActor, err := newActor(c.client, c.acc, cfg)
if err != nil {
return err
}
c.cfg = cfg
c.setActor(rpcActor)
return nil return nil
} }