-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Passing a number where a contract expects an address produces a bad error message #364
Labels
enhancement
New feature or improvement.
Comments
Can you provide some context? What code is causing this. |
function delegateTarget(
address registryAddr
)
public
{
require(registryAddr == address(0));
} javascript: await contract.functions.delegateTarget(0); where |
The number await contract.functions.delegateTarget(ethers.constants.AddressZero); |
Oh. You just want a better error message? |
Yeap
…On Wed, Dec 5, 2018, 2:22 PM Richard Moore ***@***.*** wrote:
Oh. You just want a better error message?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAH9OqFGGtu2Uek4B7UgwlR3vWfmPhtZks5u12WkgaJpZM4ZCEVQ>
.
|
ricmoo
added a commit
that referenced
this issue
Dec 12, 2018
ricmoo
added
enhancement
New feature or improvement.
on-deck
This Enhancement or Bug is currently being worked on.
and removed
discussion
Questions, feedback and general information.
labels
Dec 14, 2018
The error is now "invalid address" :) Thanks! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: