smartcontract: fix error message for CreateMultiSigRedeemScript

This commit is contained in:
Anna Shaleva 2022-10-04 09:07:57 +03:00
parent a91cf2a007
commit 4a46001746

View file

@ -14,7 +14,7 @@ import (
// where n is the length of publicKeys. // where n is the length of publicKeys.
func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error) { func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error) {
if m < 1 { if m < 1 {
return nil, fmt.Errorf("param m cannot be smaller or equal to 1 got %d", m) return nil, fmt.Errorf("param m cannot be smaller than 1, got %d", m)
} }
if m > len(publicKeys) { if m > len(publicKeys) {
return nil, fmt.Errorf("length of the signatures (%d) is higher then the number of public keys", m) return nil, fmt.Errorf("length of the signatures (%d) is higher then the number of public keys", m)