forked from TrueCloudLab/neoneo-go
neotest: fix NewSingleSigner description, fix #3118
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
e9d582f525
commit
7cedcb9197
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue