0xcaff / splitter-contract

An Ethereum smart contract to evenly split received funds between a set number of outputs.
MIT License
23 stars 9 forks source link

Fix withdraw(uint amount) always withdrawing 0 #2

Closed bjorn-jarisch closed 6 years ago

bjorn-jarisch commented 6 years ago

Fix withdrawInternal never setting transferring to != 0 unless all parameter is set

0xcaff commented 6 years ago

This is a really bad bug. Good catch. Thanks.

0xcaff commented 6 years ago

I've also added a test for this case in c9ac065bc6c4ff7c8c6ae9a0976055b27139ab76