cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

More actionable error message for "Incorrect number of arguments"

Open emergent-reasons opened this issue 3 years ago • 0 comments

Example:

Incorrect number of arguments passed to AnyHedge_v0_11 constructor

Would be nice to have

Expected x arguments for y constructor but got z

or

X unexpected arguments and Y missing arguments passed to ... constructor

or any format that works.

emergent-reasons avatar May 11 '22 05:05 emergent-reasons