From 7cedcb91972549bcc551d47a1811b2ce6259964d Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 5 Sep 2023 12:36:22 +0300 Subject: [PATCH] neotest: fix NewSingleSigner description, fix #3118 Signed-off-by: Roman Khimov --- pkg/neotest/signer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/neotest/signer.go b/pkg/neotest/signer.go index 333144434..7435cb10e 100644 --- a/pkg/neotest/signer.go +++ b/pkg/neotest/signer.go @@ -53,8 +53,8 @@ type multiSigner struct { m int } -// NewSingleSigner returns a multi-signature signer for the provided account. -// It must contain exactly as many accounts as needed to sign the script. +// NewSingleSigner creates a [SingleSigner] from the provided account. It has +// just one key, see [NewMultiSigner] for multisignature accounts. func NewSingleSigner(acc *wallet.Account) SingleSigner { if !vm.IsSignatureContract(acc.Contract.Script) { panic("account must have simple-signature verification script")