Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance coin retrieval logic in Iota client (#1472)
* Enhance coin retrieval logic in Iota client - Introduced a constant `MINIMUM_BALANCE` to define the minimum balance required for transactions. - Updated `get_coin_for_transaction` method to iterate through paginated coin data, selecting the coin with the highest balance that meets the minimum requirement. - Improved error handling to provide clearer messages when no suitable coins are found. This change optimizes the process of selecting coins for transactions, ensuring that only coins with sufficient balance are considered. * chore: remove unecessary comments * chore: simplify the coin logic * chore: review comments * Update identity_iota_core/src/rebased/client/full_client.rs Co-authored-by: Enrico Marconi <31142849+UMR1352@users.noreply.github.com> * Update minimum balance requirement in Iota client --------- Co-authored-by: Enrico Marconi <31142849+UMR1352@users.noreply.github.com>
- Loading branch information