Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Maximum deposit count #26
What was wrong?
The current contract does not work as expected if the deposit count becomes
Here is a problematic scenario.
Then, after the following loop,
Thus, the following assignment leads to the index out of bounds error:
(BTW, the computed
The index out of bounds error itself can be avoided by increasing the size of
How can it be fixed?
It is non-trivial to fix (without increasing the gas cost) the contract to be able to receive
Thus, if it is OK to restrict the maximum deposit count to
After discussing with @daejunpark today, we decided that it makes sense to just put the
@NIC619 Can you handle this edit?