mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
smartcontract: fix error message for CreateMultiSigRedeemScript
This commit is contained in:
parent
a91cf2a007
commit
4a46001746
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
// where n is the length of publicKeys.
|
||||
func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error) {
|
||||
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) {
|
||||
return nil, fmt.Errorf("length of the signatures (%d) is higher then the number of public keys", m)
|
||||
|
|
Loading…
Reference in a new issue