SIGN IN SIGN UP
FuelLabs / fuel-core UNCLAIMED

Rust full node implementation of the Fuel v2 protocol.

0 0 15 Rust

The `MaxCoinsReached` error is now thrown when the target reached the max input limit. (#3048)

## Linked Issues/PRs

- #3043 

## Description

- We've altered the indexed coin selection algorithm and considered
whether the account has more UTXOs to add to the target (hence reaching
the TX input limit); otherwise, the account has insufficient coins.
- We've also added the owner of the UTXO to both `MaxCoinReached` and
`InsufficientCoins` errors, for further clarity.

## Checklist
- [ ] Breaking changes are clearly marked as such in the PR description
and changelog
- [ ] New behavior is reflected in tests
- [ ] [The specification](https://github.com/FuelLabs/fuel-specs/)
matches the implemented behavior (link update PR if changes are needed)

### Before requesting review
- [ ] I have reviewed the code myself
- [ ] I have created follow-up issues caused by this PR and linked them
here

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Sway compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?
P
Peter Smith committed
6f420c90d5376d49f11e62ff9c345a6a76e09cf6
Parent: d54cf5a
Committed by GitHub <noreply@github.com> on 7/26/2025, 11:09:30 PM