[#751] morph/client: Add custom signer scope support

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-08-05 17:17:54 +03:00 committed by Alex Vanin
parent f121a73049
commit 43dfccd9b3
3 changed files with 31 additions and 4 deletions

View file

@ -342,8 +342,10 @@ func (c *Client) notaryCosigners(ir []*keys.PublicKey, committee bool) ([]transa
}
s = append(s, transaction.Signer{
Account: hash.Hash160(multisigScript),
Scopes: transaction.Global,
Account: hash.Hash160(multisigScript),
Scopes: c.signer.Scopes,
AllowedContracts: c.signer.AllowedContracts,
AllowedGroups: c.signer.AllowedGroups,
})
// last one is a placeholder for notary contract signature