mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
smartcontract: improve CreateMultiSigRedeemScript documentation
It was always like that, but this important aspect was never documented. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
de665b5567
commit
32e3310205
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ import (
|
|||
)
|
||||
|
||||
// CreateMultiSigRedeemScript creates an "m out of n" type verification script
|
||||
// where n is the length of publicKeys.
|
||||
// where n is the length of publicKeys. It modifies passed publicKeys by
|
||||
// sorting them.
|
||||
func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error) {
|
||||
if m < 1 {
|
||||
return nil, fmt.Errorf("param m cannot be smaller than 1, got %d", m)
|
||||
|
|
Loading…
Reference in a new issue