Skip to content
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

remove parseEther from useScaffoldContractWrite #548

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

technophile-04
Copy link
Collaborator

Description

As discussed in #516, I agree with the discussion and also makes sense now 🙌

also btw the type of value that we had was a bit too harsh as it was typed as ${number} lol which was a PITA to get it right until you write your own validate function helper or assert it with as or just pass in literal value like "0.1".

Here is an example that might frustrate users:
Screenshot 2023-09-29 at 3 46 33 PM

Nevertheless, this PR removes parseEther from useScaffoldContractWrite so we leave it to users, which solves all the issue 🙌

Copy link
Member

@carletex carletex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, glad we are merging this in! Thanks @technophile-04 !!

@carletex carletex merged commit fc7914c into main Oct 3, 2023
1 check passed
@carletex carletex deleted the update/useScaffoldContractWrite-value branch October 3, 2023 06:55
@github-actions github-actions bot mentioned this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants