Skip to content

Commit

Permalink
specify the argument exception information.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim8y committed Dec 20, 2024
1 parent a784c41 commit e2acc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static Contract CreateMultiSigContract(int m, IReadOnlyCollection<ECPoint
public static byte[] CreateMultiSigRedeemScript(int m, IReadOnlyCollection<ECPoint> publicKeys)
{
if (!(1 <= m && m <= publicKeys.Count && publicKeys.Count <= 1024))
throw new ArgumentException();
throw new ArgumentException($"Invalid multisig parameters: m={m}, publicKeys.Count={publicKeys.Count}");
using ScriptBuilder sb = new();
sb.EmitPush(m);
foreach (ECPoint publicKey in publicKeys.OrderBy(p => p))
Expand Down

0 comments on commit e2acc64

Please sign in to comment.