ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 338 forks source link

give more info to the user when a batch purchase fails due to low amount #4724

Closed istae closed 2 months ago

istae commented 2 months ago

the smallest value allowed for a batch purchase is enough TTL to last a day.

currently a 500 response is returned and the user is left in the dark without proper logging.

ideally, the bee client should check the minimum amount from the contract and return a proper error and log the error if the batch fails to satisfy the minimum amount.