Smart Contract Auditor.
Bug Bounty Hunter.
While doing Rust Audit Learned something new today!
Its regarding "zip". not ZIP file compression :P
www.youtube.com/watch?v=70yy...
www.youtube.com/watch?v=70yy...
Human r most vulnerable :)
Human r most vulnerable :)
What if both have different lengths ?
But In Rust, the zip method only iterates until one of the iterators is exhausted.
here comes the problem! :
Here, the third element in payouts (30) is ignored because multipliers has fewer elements.
What if both have different lengths ?
But In Rust, the zip method only iterates until one of the iterators is exhausted.
here comes the problem! :
Here, the third element in payouts (30) is ignored because multipliers has fewer elements.
zip() returns a new iterator that will iterate over two other iterators, returning a tuple where the first element comes from the first iterator, and the second element comes from the second iterator.
zip() returns a new iterator that will iterate over two other iterators, returning a tuple where the first element comes from the first iterator, and the second element comes from the second iterator.
While doing Rust Audit Learned something new today!
Its regarding "zip". not ZIP file compression :P
While doing Rust Audit Learned something new today!
Its regarding "zip". not ZIP file compression :P