clarity-lang / reference

The Clarity Reference
149 stars 34 forks source link

Use stricter argument count checks #66

Open obycode opened 1 year ago

obycode commented 1 year ago

Duplicate of https://github.com/stacks-network/stacks-blockchain/issues/3117:

In some functions like get-block-info? and var-set, we only require a minimum argument count as opposed to an exact argument count. I think we should require an exact argument count in 2.1, so that failure to supply the right number of arguments results in a CheckError instead of an InterpreterError.

Note, this change did not get included in 2.1.