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
fixed panic: runtime error: integer divide by zero #4777 #4823
Conversation
Hi @aranhaagency sorry for the misunderstanding, but the problem isn't that we're overflowing the max value of an int - the problem is we're accessing an element out of range in the list. Here's the issue:
I want to access element 24: item := list[24]
panic: index 24 out of range in list of length 5 That's the issue we're trying to solve. What you can do is generate a random number again in a for loop until you generate one that is |
Hi @rauljordan, Thanks. |
Codecov Report
@@ Coverage Diff @@
## master #4823 +/- ##
=========================================
Coverage ? 57.46%
=========================================
Files ? 255
Lines ? 19264
Branches ? 0
=========================================
Hits ? 11071
Misses ? 6677
Partials ? 1516 |
@aranhaagency handled it since this issue is more pressuring to current testnet. Thanks for starting! |
add Simple checker for integer divide
[Part of|Resolves] #4777