mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
Merge pull request #3119 from nspcc-dev/neotest-doc
neotest: fix NewSingleSigner description, fix #3118
This commit is contained in:
commit
2f54f176fb
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue