-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: check check constructor args type #5199
feat: check check constructor args type #5199
Conversation
🦋 Changeset detectedLatest commit: cb2ad86 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@kanej Maybe this pr not feature, it's fix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice check when the constructor arguments are provided via a file or when the task is called programmatically. However, it doesn't have any effect when the arguments are passed through the CLI, as they are interpreted as strings. I've cleaned up the code, added a test, and included the changeset.
Got it. Maybe We need to transform string to a number and check if it's NaN or not. |
I don't think we need to, as the verification succeeds anyway. |
This is the contract code:
Parameter passing file:
Using the command: