rpc/client: fix custom* scope processing in CreateTxFromScript

Copying just the scope doesn't work for CustomContracts, CustomGroups and
Rules because they all contain additional metadata. Thanks @mialbu for
reporting this.
This commit is contained in:
Roman Khimov 2021-11-22 12:44:42 +03:00
parent aa06770b3d
commit f58d424c6d
2 changed files with 34 additions and 8 deletions

View file

@ -714,7 +714,7 @@ func getSigners(sender *wallet.Account, cosigners []SignerAccount) ([]transactio
}
for _, c := range cosigners {
if c.Signer.Account == from {
s.Scopes = c.Signer.Scopes
s = c.Signer
continue
}
signers = append(signers, c.Signer)