Merge pull request #3119 from nspcc-dev/neotest-doc

neotest: fix NewSingleSigner description, fix #3118
This commit is contained in:
Roman Khimov 2023-09-05 13:04:48 +03:00 committed by GitHub
commit 2f54f176fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,8 +53,8 @@ type multiSigner struct {
m int m int
} }
// NewSingleSigner returns a multi-signature signer for the provided account. // NewSingleSigner creates a [SingleSigner] from the provided account. It has
// It must contain exactly as many accounts as needed to sign the script. // just one key, see [NewMultiSigner] for multisignature accounts.
func NewSingleSigner(acc *wallet.Account) SingleSigner { func NewSingleSigner(acc *wallet.Account) SingleSigner {
if !vm.IsSignatureContract(acc.Contract.Script) { if !vm.IsSignatureContract(acc.Contract.Script) {
panic("account must have simple-signature verification script") panic("account must have simple-signature verification script")