Fixes for the morph client and neofs-adm #239
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue
Scopes changed. Is it ok?
Yes, it is similar to fix in another commit.