Withdraw from a contributor used to be non-resettable because when a reservation is fulfilled it was deleted from the contract which meant when a contributor left they lost their slot and potentially causes pre-existing contributors to fail the minimum reservation checks.
To handle this I've added an additional flag to the reservation called received which remembers if the contribution was made which allows us to keep around the reservation information. Goes ontop of https://github.com/oxen-io/eth-sn-contracts/pull/87 and includes a bunch of updated tests to check that it's working.
Withdraw from a contributor used to be non-resettable because when a reservation is fulfilled it was deleted from the contract which meant when a contributor left they lost their slot and potentially causes pre-existing contributors to fail the minimum reservation checks.
To handle this I've added an additional flag to the reservation called
received
which remembers if the contribution was made which allows us to keep around the reservation information. Goes ontop of https://github.com/oxen-io/eth-sn-contracts/pull/87 and includes a bunch of updated tests to check that it's working.