-
-
Notifications
You must be signed in to change notification settings - Fork 111
NIL parameters pass to rpc-call #3
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
Comments
Could you elaborate on this? |
I see the current version working as expected. Is there a specific reason for this modification? |
Hey,
Didn't work.
The problem initially happened with startBlock/endBlock since you commented about them that they could be equal to nil or something and I later found in etherscan.io documentation about it. I only found a way after that because I was too lazy to write a code which figures out contract addresses. |
I'm very sorry, the header of an issue could misguide you. |
@nanmu42 I see a link to Golang FAQ. I investigated Golang types a little bit and realized that the problem is in non-nil type value. Do you know another solution to this without reflect? |
Thank you for finding this bug. 🍻 The problem should be solved in Yes, there is another way, but less DRY -- check for nil in every function like |
That's another way I thought about. I tried to figure out how to make it work without changing your code at all but it seems there is no way because the compiler doesn't allow to pass Thank you for your work anyway. Nice, clean, small project. |
You are very kind. :D |
I am closing this. Feel free to reopen this issue if the bug persists. |
Uh oh!
There was an error while loading. Please reload this page.
They are not pass, if the code in helper.go change to:
The text was updated successfully, but these errors were encountered: