-
Notifications
You must be signed in to change notification settings - Fork 79
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
Null handling in unwrap library #2795
Comments
Ping to this issue, because NNS wrapper (#3291) uses IMO, this behaviour of NNS wrapper is not correct and it will be fixed by this issue. We likely should return an empty string and no error form NNS wrapper in the described case. So something like the following will be useful, but we need to evaluate the usages of
@roman-khimov, what do you think? @AliceInHunterland, this issue is related to error returned from |
I'd propose to include this issue in 0.106.0 milestone. |
It's pretty straightforward for
The problem is, it's not Try to check for more examples of how these APIs are used currently. |
You're right. Then maybe we need to change the NNS wraper itself to return |
It's one of:
None of them is perfect. But which one to choose depends on typical usage patterns. |
still gives me goosebumps, very waiting for the release! didn't see this thread right away, so shared some my opinion in nspcc-dev/neofs-contract#415 |
It's true that we can have Null in many cases. We can have
nil
in Go at the same time. Maybe it's OK to return it.The text was updated successfully, but these errors were encountered: