[#239] morph/client: Deduplicate signers in Client a bit
One signer in the cfg is enough. Signed-off-by: Roman Khimov <roman@nspcc.ru> Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
96b38f7e86
commit
be4df989e5
4 changed files with 10 additions and 11 deletions
|
@ -208,8 +208,10 @@ func (c *Client) SetGroupSignerScope() error {
|
|||
return err
|
||||
}
|
||||
|
||||
c.signer.Scopes = transaction.CustomGroups | transaction.CalledByEntry
|
||||
c.signer.AllowedGroups = []*keys.PublicKey{pub}
|
||||
c.cfg.signer = &transaction.Signer{
|
||||
Scopes: transaction.CustomGroups | transaction.CalledByEntry,
|
||||
AllowedGroups: []*keys.PublicKey{pub},
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue