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:
Roman Khimov 2024-08-26 19:22:59 +03:00
parent de665b5567
commit 32e3310205

View file

@ -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)